Skip to content

ReactApi

ReactApi = object

Defined in: react/src/useStore.ts:99

React-specific methods added to the Store when used via React hooks.

These methods are attached by withReactApi() and useStore(), allowing you to call store.useQuery() and store.useClientDocument() directly on the Store instance.

useClientDocument: typeof useClientDocument

Defined in: react/src/useStore.ts:103

Hook for reading and writing client-document tables with React state semantics


useQuery: typeof useQuery

Defined in: react/src/useStore.ts:101

Hook version of query subscription—re-renders component when query result changes


useSyncStatus: () => SyncStatus

Defined in: react/src/useStore.ts:105

Hook for subscribing to sync status changes

SyncStatus