Skip to content

Commit

Permalink
docs: add isFetched variable info (#1317)
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Dec 7, 2020
1 parent 7535383 commit f52953c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/pages/docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const {
error,
failureCount,
isError,
isFetched,
isFetchedAfterMount,
isFetching,
isIdle,
Expand Down Expand Up @@ -185,6 +186,8 @@ const queryInfo = useQuery({
- Will be `true` when `keepPreviousData` is set and data from the previous query is returned.
- `isPlaceholderData: Boolean`
- Will be `true` if and when the query's `data` is equal to the result of the `placeholderData` option.
- `isFetched: Boolean`
- Will be `true` if the query has been fetched.
- `isFetchedAfterMount: Boolean`
- Will be `true` if the query has been fetched after the component mounted.
- This property can be used to not show any previously cached data.
Expand Down

1 comment on commit f52953c

@vercel
Copy link

@vercel vercel bot commented on f52953c Dec 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.