Skip to content

Commit

Permalink
Clarify active query limitation for refetchQueries
Browse files Browse the repository at this point in the history
  • Loading branch information
nopelluhh committed Nov 9, 2023
1 parent 291aea5 commit a12cdaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/data/mutations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ You can provide the `refetchQueries` option either to `useMutation` or to the mu

Note that in an app with tens or hundreds of different queries, it can be challenging to determine exactly which queries to refetch after a particular mutation.

> Only active queries can be refetched using this option. If the query you want to refetch is not used by a component on the current page, you may want to consider modifying your mutation to support updating the cache directly as described below.
## Updating the cache directly

### Include modified objects in mutation responses
Expand Down

0 comments on commit a12cdaf

Please sign in to comment.