Skip to content

Commit b2025c3

Browse files
docs(queries):add description of isFetching (#5887)
1 parent 56faa1f commit b2025c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/react/guides/queries.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Beyond those primary states, more information is available depending on the stat
4848

4949
- `error` - If the query is in an `isError` state, the error is available via the `error` property.
5050
- `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`.
5152

5253
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:
5354

0 commit comments

Comments
 (0)