Skip to content

Commit a2d5f2c

Browse files
authored
Fix isMutatingPosts example
Previously the example was using an array as argument, which doesn't match the newest API.
1 parent 9aed040 commit a2d5f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/reference/useIsMutating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { useIsMutating } from 'react-query'
1010
// How many mutations are fetching?
1111
const isMutating = useIsMutating()
1212
// How many mutations matching the posts prefix are fetching?
13-
const isMutatingPosts = useIsMutating(['posts'])
13+
const isMutatingPosts = useIsMutating({ mutationKey: 'posts' })
1414
```
1515

1616
**Options**

0 commit comments

Comments
 (0)