The React SDK provides useReducer and useTable hooks but has no equivalent useProcedure hook. Additionally, the TypeScript codegen emits export const reducers = __convertToAccessorMap(...) but does not do the same for procedures, so there is no way to get individual procedure definitions to pass to a hook.
React users who want to call procedures have to reach into getConnection().procedures directly, losing the connection-queuing behavior and ergonomic pattern that useReducer provides.
The React SDK provides
useReduceranduseTablehooks but has no equivalentuseProcedurehook. Additionally, the TypeScript codegen emitsexport const reducers = __convertToAccessorMap(...)but does not do the same for procedures, so there is no way to get individual procedure definitions to pass to a hook.React users who want to call procedures have to reach into
getConnection().proceduresdirectly, losing the connection-queuing behavior and ergonomic pattern thatuseReducerprovides.