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
Copy file name to clipboardExpand all lines: docs/react/guides/queries.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ Beyond those primary states, more information is available depending on the stat
48
48
49
49
-`error` - If the query is in an `isError` state, the error is available via the `error` property.
50
50
-`data` - If the query is in an `isSuccess` state, the data is available via the `data` property.
51
+
-`isFetching` - In any state, if the query is fetching at any time (including background refetching) `isFetching` will be `true`.
51
52
52
53
For **most** queries, it's usually sufficient to check for the `isLoading` state, then the `isError` state, then finally, assume that the data is available and render the successful state:
0 commit comments