Skip to content

Commit d595e23

Browse files
docs: fix variables obtaining path (#8589)
1 parent 0613400 commit d595e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/framework/react/guides/filters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ await queryClient.isMutating({ mutationKey: ['post'] })
5656

5757
// Filter mutations using a predicate function
5858
await queryClient.isMutating({
59-
predicate: (mutation) => mutation.options.variables?.id === 1,
59+
predicate: (mutation) => mutation.state.variables?.id === 1,
6060
})
6161
```
6262

0 commit comments

Comments
 (0)