With version 3.22.0, hydration utilities moved into the react-query core. With v3, you could still use the old exports from react-query/hydration
, but these exports have been removed with v4.
- import { dehydrate, hydrate, useHydrate, Hydrate } from 'react-query/hydration'+ import { dehydrate, hydrate, useHydrate, Hydrate } from 'react-query'
The latest TanStack news, articles, and resources, sent to your inbox.