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

useSuspenseInfiniteQuery.md

29 lines640 Bytes

const result = useSuspenseInfiniteQuery(options)

Options

The same as for useInfiniteQuery, except for:

  • throwOnError
  • enabled

Returns

Same object as useInfiniteQuery, except that:

  • data is guaranteed to be defined
  • status is either success or error
    • the derived flags are set accordingly.

When placeholderData is defined, the result has isPlaceholderData: true until the Query returns its data.

Caveat

Cancellation does not work.