
useHydrate adds a previously dehydrated state into the cache that would be returned by useQueryCache(). If the cache already contains data, the new queries will be intelligently merged based on update timestamp.
import { useHydrate } from 'react-query/hydration'useHydrate(dehydratedState, options)
Options
dehydratedState: DehydratedStateoptions: HydrateOptionsdefaultOptions: QueryOptionsThe latest TanStack news, articles, and resources, sent to your inbox.