0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
query/docs/framework/preact/reference/interfaces/HydrateOptions.md
Wonsuk Choi f38e6271b4
chore(*): update '@tanstack/typedoc-config' to v0.3.5 (#12035)
* chore(scripts/generate-docs): read type alias bodies whose type parameters have defaults

* chore(*): update '@tanstack/typedoc-config' to v0.3.5
2026-10-17 11:14:03 +09:00

1.2 KiB

id title
HydrateOptions HydrateOptions

Defined in: packages/query-core/src/hydration.ts:68

Options for hydrate, controlling the default options applied to queries/mutations restored from a DehydratedState, and how to reverse any transformation applied by DehydrateOptions.serializeData.

Properties

Property Type Description
defaultOptions? object Options applied to the queries and mutations restored from the dehydrated state.
defaultOptions.deserializeData? TransformerFn Transforms a query's data after it is read from the dehydrated state, reversing serializeData.
defaultOptions.mutations? MutationOptions<unknown, Error, unknown, unknown> Default options merged into every mutation restored from the dehydrated state.
defaultOptions.queries? QueryOptions<unknown, Error, unknown, readonly unknown[], never> Default options merged into every query restored from the dehydrated state.