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

useSuspenseInfiniteQuery.md

30 lines595 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- `suspense`
15- `throwOnError`
16- `enabled`
17- `placeholderData`
18​
19**Returns**
20​
21Same object as [useInfiniteQuery](./useInfiniteQuery.md), except that:
22​
23- `data` is guaranteed to be defined
24- `isPlaceholderData` is missing
25- `status` is either `success` or `error`
26 - the derived flags are set accordingly.
27​
28**Caveat**
29​
30[Cancellation](../guides/query-cancellation.md) does not work.