Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/framework/react/guides/query-cancellation.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,7 @@ return (
```

[//]: # 'Example7'

## Limitations

Cancelation does not work when working with `Suspense` hooks: `useSuspenseQuery`, `useSuspenseQueries` and `useSuspenseInfiniteQuery`.
4 changes: 4 additions & 0 deletions docs/framework/react/reference/useSuspenseInfiniteQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ Same object as [useInfiniteQuery](../useInfiniteQuery), except that:
- `isPlaceholderData` is missing
- `status` is always `success`
- the derived flags are set accordingly.

**Caveat**

[Cancelation](../guides/query-cancellation.md) does not work.
4 changes: 3 additions & 1 deletion docs/framework/react/reference/useSuspenseQueries.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Same structure as [useQueries](../useQueries), except that for each `query`:
- `status` is always `success`
- the derived flags are set accordingly.

**Caveat**
**Caveats**

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`.

[Cancelation](../guides/query-cancellation.md) does not work.
4 changes: 4 additions & 0 deletions docs/framework/react/reference/useSuspenseQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ Same object as [useQuery](../useQuery), except that:
- `isPlaceholderData` is missing
- `status` is always `success`
- the derived flags are set accordingly.

**Caveat**

[Cancelation](../guides/query-cancellation.md) does not work.