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

useSuspenseInfiniteQuery.md

30 lines579 Bytes

const result = useSuspenseInfiniteQuery(options)

Options

The same as for useInfiniteQuery, except for:

  • suspense
  • throwOnError
  • enabled
  • placeholderData

Returns

Same object as useInfiniteQuery, except that:

  • data is guaranteed to be defined
  • isPlaceholderData is missing
  • status is always success
    • the derived flags are set accordingly.

Caveat

Cancelation does not work.