Skip to content

Commit 291d324

Browse files
committed
docs: add a note about useQueries
1 parent 6407369 commit 291d324

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/react/guides/migrating-to-react-query-5.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ We have removed the `keepPreviousData` option and `isPreviousData` flag as they
128128
To achieve the same functionality as `keepPreviousData`, we have added previous query `data` as an argument to `placeholderData` function.
129129
Therefore you just need to provide an identity function to `placeholderData` or use `keepPreviousData` function returned from Tanstack Query.
130130

131+
> A note here is that `useQueries` would not receive `previousData` in the `placeholderData` function as argument. This is due to a dynamic nature of queries passed in the array, which may lead to a different shape of result from placeholder and queryFn.
132+
131133
```diff
132134
const {
133135
data,

0 commit comments

Comments
 (0)