Skip to content

Commit f52953c

Browse files
authored
docs: add isFetched variable info (#1317)
1 parent 7535383 commit f52953c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/pages/docs/api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const {
1111
error,
1212
failureCount,
1313
isError,
14+
isFetched,
1415
isFetchedAfterMount,
1516
isFetching,
1617
isIdle,
@@ -185,6 +186,8 @@ const queryInfo = useQuery({
185186
- Will be `true` when `keepPreviousData` is set and data from the previous query is returned.
186187
- `isPlaceholderData: Boolean`
187188
- Will be `true` if and when the query's `data` is equal to the result of the `placeholderData` option.
189+
- `isFetched: Boolean`
190+
- Will be `true` if the query has been fetched.
188191
- `isFetchedAfterMount: Boolean`
189192
- Will be `true` if the query has been fetched after the component mounted.
190193
- This property can be used to not show any previously cached data.

0 commit comments

Comments
 (0)