mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
526 B
526 B
| id | title |
|---|---|
| useSuspenseQuery | useSuspenseQuery |
const result = useSuspenseQuery(options)
Options
The same as for useQuery, except for:
throwOnErrorenabledplaceholderData
Returns
Same object as useQuery, except that:
datais guaranteed to be definedisPlaceholderDatais missingstatusis eithersuccessorerror- the derived flags are set accordingly.
Caveat
Cancellation does not work.