From f52953c912f319d29504aaf353877885b83cce7d Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sun, 6 Dec 2020 23:09:29 -0500 Subject: [PATCH] docs: add isFetched variable info (#1317) --- docs/src/pages/docs/api.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/pages/docs/api.md b/docs/src/pages/docs/api.md index 6e9cddb6cc..2cbb8e70f4 100644 --- a/docs/src/pages/docs/api.md +++ b/docs/src/pages/docs/api.md @@ -11,6 +11,7 @@ const { error, failureCount, isError, + isFetched, isFetchedAfterMount, isFetching, isIdle, @@ -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.