mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
1.2 KiB
1.2 KiB
| id | title |
|---|---|
| HydrationBoundaryProps | HydrationBoundaryProps |
Defined in: packages/preact-query/src/HydrationBoundary.tsx:17
The props accepted by HydrationBoundary.
Properties
| 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. |