Skip to content

Commit 971bd6f

Browse files
docs(useSuspenseQueries): add stale time caveat (TanStack#6641)
* docs(useSuspenseQueries): add stale time caveat * Update docs/react/reference/useSuspenseQueries.md --------- Co-authored-by: Dominik Dorfmeister <[email protected]>
1 parent 694cfdb commit 971bd6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/react/reference/useSuspenseQueries.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ Same structure as [useQueries](../reference/useQueries), except that for each `q
2424
- `isPlaceholderData` is missing
2525
- `status` is always `success`
2626
- the derived flags are set accordingly.
27+
28+
**Caveat**
29+
30+
Keep in mind that the component will only re-mount after **all queries** have finished loading. Hence, if a query has gone stale in the time it took for all the queries to complete, it will be fetched again at re-mount. To avoid this, make sure to set a high enough `staleTime`.

0 commit comments

Comments
 (0)