useHydrate
adds a previously dehydrated state into the queryClient
that would be returned by useQueryClient()
. If the client already contains data, the new queries will be intelligently merged based on update timestamp.
import { useHydrate } from '@sveltestack/svelte-query/hydration'useHydrate(dehydratedState, options)
Options
dehydratedState: DehydratedState
options: HydrateOptions
defaultOptions: QueryOptions
The latest TanStack news, articles, and resources, sent to your inbox.