Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

useSuspenseInfiniteQuery.md

29 lines640 Bytes

1---
2id: useSuspenseInfiniteQuery
3title: useSuspenseInfiniteQuery
4---
5​
6```tsx
7const result = useSuspenseInfiniteQuery(options)
8```
9​
10**Options**
11​
12The same as for [useInfiniteQuery](./useInfiniteQuery.md), except for:
13​
14- `throwOnError`
15- `enabled`
16​
17**Returns**
18​
19Same object as [useInfiniteQuery](./useInfiniteQuery.md), except that:
20​
21- `data` is guaranteed to be defined
22- `status` is either `success` or `error`
23 - the derived flags are set accordingly.
24​
25When `placeholderData` is defined, the result has `isPlaceholderData: true` until the Query returns its data.
26​
27**Caveat**
28​
29[Cancellation](../guides/query-cancellation.md) does not work.