Docs
Cloudflare
Railway
CodeRabbit
SerpAPI
WorkOS
AG Grid
Clerk
Netlify
OpenRouter
Unkey
Prisma
Sentry
Electric
Cloudflare
Railway
CodeRabbit
SerpAPI
WorkOS
AG Grid
Clerk
Netlify
OpenRouter
Unkey
Prisma
Sentry
Electric
API Reference

useSuspenseQuery

tsx
const result = useSuspenseQuery(options)
const result = useSuspenseQuery(options)

Options

The same as for useQuery, except for:

  • throwOnError
  • enabled
  • placeholderData

Returns

Same object as useQuery, except that:

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

Caveat

Cancellation does not work.