Skip to content

Commit

Permalink
chore: make PR review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Jan 3, 2024
1 parent cb2905b commit 83cc833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/performance/optimistic-ui.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ As this example shows, the value of `optimisticResponse` is an object that match

## Bailing out of an optimistic update

In some cases you may want to skip an optimisitic update. For example, you may want to perform an optimistic update _only_ when certain variables are passed to the mutation. In order to skip an update, you can pass a function to `optimisticResponse` and use the `IGNORE` sentinel object available on the second argument passed to your `optimisticResponse` function to bail out of the optimistic update.
In some cases you may want to skip an optimistic update. For example, you may want to perform an optimistic update _only_ when certain variables are passed to the mutation. To skip an update, pass a function to the `optimisticResponse` option and return the `IGNORE` sentinel object available on the second argument to bail out of the optimistic update.

Consider this example:

Expand Down

0 comments on commit 83cc833

Please sign in to comment.