Skip to content

Commit 976fdb7

Browse files
authored
docs: fix typo/outdated hook reference (TanStack#2324)
According to the link below, useQueryCache was replaced by useQueryClient in react-query 3. https://react-query.tanstack.com/guides/migrating-to-react-query-3#the-usequerycache-hook-has-been-replaced-by-the-usequeryclient-hook I update the wording here using the wording in useHydrate.md as a reference.
1 parent 85d14d3 commit 976fdb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/reference/hydration/HydrateComp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: hydration/HydrateComp
33
title: hydration/Hydrate
44
---
55

6-
`hydration/Hydrate` adds a previously dehydrated state into the `queryClient` that would returned by running `useQueryCache`. If the client already contains data, the new queries will be intelligently merged based on update timestamp.
6+
`hydration/Hydrate` 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.
77

88
```js
99
import { Hydrate } from 'react-query/hydration'

0 commit comments

Comments
 (0)