Framework
Version
Menu
Getting Started
Guides & Concepts
API Reference
ESLint
Community Resources
Examples
Plugins

useSuspenseInfiniteQuery

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

Want to Skip the Docs?
Query.gg - The Official React Query Course
“This course is the best way to learn how to use React Query in real-world applications.”—Tanner Linsley
Check it out
scarf analytics