mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
TanStack Router uses path-based navigation instead of route-based navigation, so many of the relative documentation links will be invalid after migration. This fixes that.
448 B
448 B
| id | title |
|---|---|
| useSuspenseQuery | useSuspenseQuery |
const result = useSuspenseQuery(options)
Options
The same as for useQuery, except for:
suspensethrowOnErrorenabledplaceholderData
Returns
Same object as useQuery, except that:
datais guaranteed to be definedisPlaceholderDatais missingstatusis alwayssuccess- the derived flags are set accordingly.