Skip to content

Commit

Permalink
updated useIsFetching readme (returns number not bool) (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafa authored Mar 19, 2020
1 parent c66dcc9 commit df4bd3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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`
Expand Down

0 comments on commit df4bd3b

Please sign in to comment.