TanStackT
TanStack3y ago
11 replies
uncertain-scarlet

Disable suspense for a specific query

I noticed in v5 there is no option anymore on useQuery to do { suspense: false }. What's the recommended approach now to disable the suspense behavior for a specific query? What's the expected behavior if I set suspense: true globally on the query client? Would the
useQuery
hooks use the Suspense boundary or that's ignored for them since there is now a useSuspenseQuery hook? The overlap is a bit confusing for me.
Thank you
Was this page helpful?