Skip to content

Commit 23846f5

Browse files
authored
docs: add isFetched to useQuery (#1810)
1 parent 4cecdb1 commit 23846f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/pages/reference/useQuery.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const {
1111
errorUpdatedAt,
1212
failureCount,
1313
isError,
14+
isFetched,
1415
isFetchedAfterMount,
1516
isFetching,
1617
isIdle,
@@ -201,6 +202,8 @@ const result = useQuery({
201202
- Will be `true` if the data shown is the placeholder data.
202203
- `isPreviousData: boolean`
203204
- Will be `true` when `keepPreviousData` is set and data from the previous query is returned.
205+
- `isFetched: boolean`
206+
- Will be `true` if the query has been fetched.
204207
- `isFetchedAfterMount: boolean`
205208
- Will be `true` if the query has been fetched after the component mounted.
206209
- This property can be used to not show any previously cached data.

0 commit comments

Comments
 (0)