Defined in: packages/preact-query/src/HydrationBoundary.tsx:17
The props accepted by HydrationBoundary.
| Property | Type | Description |
|---|---|---|
| children? | ComponentChildren | The components to render — always rendered unconditionally, not gated on hydration. New queries are hydrated into the cache during render; for queries that already exist in the cache, only newer dehydrated data is hydrated, and that happens in an effect after commit, so children may render briefly before it lands. |
| options? | OmitKeyof<HydrateOptions, "defaultOptions"> & object | Optional. Note: unlike hydrate, mutations cannot be set here. |
| queryClient? | QueryClient | Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used. |
| state | DehydratedState | null | undefined | The state to hydrate. |