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

useSuspenseQueries

tsx
const result = useSuspenseQueries(options)

Options

The same as for useQueries, except that each query can't have:

  • suspense
  • throwOnError
  • enabled
  • placeholderData

Returns

Same structure as useQueries, except that for each query:

  • data is guaranteed to be defined
  • isPlaceholderData is missing
  • status is always success
    • the derived flags are set accordingly.
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