From df4bd3b54943db6acc4df612e6e85d6b09ea1a29 Mon Sep 17 00:00:00 2001 From: mustafa Date: Thu, 19 Mar 2020 08:41:30 +0700 Subject: [PATCH] updated useIsFetching readme (returns number not bool) (#264) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e8c14d8421..61681a8dac 100644 --- a/README.md +++ b/README.md @@ -2349,7 +2349,7 @@ queryCache.clear() ## `useIsFetching` -`useIsFetching` is an optional hook that returns `true` if any query in your application is loading or fetching in the background (useful for app-wide loading indicators). +`useIsFetching` is an optional hook that returns the `number` of the quiries that your application is loading or fetching in the background (useful for app-wide loading indicators). ```js import { useIsFetching } from 'react-query' @@ -2359,8 +2359,8 @@ const isFetching = useIsFetching() ### Returns -- `isFetching: Boolean` - - Will be `true` if any query in your application is loading or fetching in the background. +- `isFetching: Int` + - Will be the `number` of the quiries that your application is currently loading or fetching in the background. ## `ReactQueryConfigProvider`