Skip to content
IC Reactor

CreateReactorProviderOptions

Defined in: react/src/createReactorProvider.ts:43

Options for createReactorProvider.

optional queryClientProvider?: boolean

Defined in: react/src/createReactorProvider.ts:60

Render a QueryClientProvider for the QueryClient the built value uses, so that useQueryClient(), React Query Devtools and HydrationBoundary below the provider read the cache the reactor hooks fill. The reactor hooks do not need it: each binds to its reactor’s own QueryClient.

Rendered only when the value holds exactly one QueryClient, found on the value and on its own properties: a defineReactor result, a reactor or a ClientManager brings its manager’s, and a QueryClient counts as itself. Below the provider it takes the place of an outer QueryClientProvider, so a plain useQuery there caches in the reactors’ QueryClient too. Pass false to leave that context to a provider of your own.

true