You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result object contains a few very important states you'll need to be aware of to be productive. A query can only be in one of the following states at any given moment:
isLoading or status === 'loading' - The query has no data and is currently fetching
isError or status === 'error' - The query encountered an error
isSuccess or status === 'success' - The query was successful and data is available
isIdle or status === 'idle' - The query is currently disabled (you'll learn more about this in a bit)
This is what I am doing currently to achieve similar results.
react-query's
useQuery
return states explicitly.This is what I am doing currently to achieve similar results.
Usage:
why not add this feature to the core library instead ?
The text was updated successfully, but these errors were encountered: