Skip to content

Commit

Permalink
Fix typo in mutations.mdx (#8757)
Browse files Browse the repository at this point in the history
Grammar correction: "thanks of your" -> "thanks to your"
  • Loading branch information
meetpatel5396 committed Sep 9, 2021
1 parent 2535ecc commit ba0b0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/data/mutations.mdx
Expand Up @@ -326,7 +326,7 @@ addTodo({
})
```

If `ReallyImportantQuery` was already going to be passed to `onQueryUpdated` thanks of your `update` function, then it will only be passed once. Using `refetchQueries: ["ReallyImportantQuery"]` just guarantees the query will be included.
If `ReallyImportantQuery` was already going to be passed to `onQueryUpdated` thanks to your `update` function, then it will only be passed once. Using `refetchQueries: ["ReallyImportantQuery"]` just guarantees the query will be included.

If you find you've included more queries than you expected, you can skip or ignore a query by returning `false` from `onQueryUpdated`, after examining the `ObservableQuery` to determine that it doesn't need refetching. Returning a `Promise` from `onQueryUpdated` causes the final `Promise<FetchResult<TData>>` for the mutation to await any promises returned from `onQueryUpdated`, eliminating the need for the legacy `awaitRefetchQueries: true` option.

Expand Down

0 comments on commit ba0b0c0

Please sign in to comment.