hydration/Hydrate
adds a previously dehydrated state into the cache
that would returned by running useQueryCache
. If the cache already contains data, the new queries will be intelligently merged based on update timestamp.
import { Hydrate } from 'react-query/hydration'function App() {return <Hydrate state={dehydratedState}>...</Hydrate>}
Options
state: DehydratedState
The latest TanStack news, articles, and resources, sent to your inbox.