Skip to content

Commit e7102a2

Browse files
committed
docs: add a note about useQueries
1 parent b397ca4 commit e7102a2

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
@@ -169,6 +169,8 @@ We have removed the `keepPreviousData` option and `isPreviousData` flag as they
169169
To achieve the same functionality as `keepPreviousData`, we have added previous query `data` as an argument to `placeholderData` function.
170170
Therefore you just need to provide an identity function to `placeholderData` or use `keepPreviousData` function returned from Tanstack Query.
171171

172+
> 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.
173+
172174
```diff
173175
const {
174176
data,

0 commit comments

Comments
 (0)