Add Commit Local Update
Summary:
Commit Local Update is not documented anywhere, so I added a short blurb for it at the mutations page.
Pull Request resolved:
@@ -9,6 +9,7 @@ Table of Contents:
- [Optimistic Updates](#optimistic-updates)
- [Updater Configs](#updater-configs)
- [Using updater and optimisticUpdater](#using-updater-and-optimisticupdater)
+- [Commiting Local Updates](#commiting-local-updates)
## `commitMutation`
@@ -347,3 +348,7 @@ function commit(
```
For details on how to interact with the Relay Store, please refer to our Relay Store [docs](./relay-store).
+
+## Commiting Local Updates
+
+Use `commitLocalUpdate` when you need to update the local store without necessarily executing a mutation (such as in the case of debounced operations). The function takes in a Relay `environment` and an `updater` function.
