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 definedisPlaceholderData
is missingstatus
is always success
Caveat
Cancelation does not work.
“This course is the best way to learn how to use React Query in real-world applications.”—Tanner LinsleyCheck it out