Skip to content

Commit

Permalink
fix(docs): remove duplicate text in MutationConfig.md (#4462)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #4462

Reviewed By: josephsavona

Differential Revision: D49951073

Pulled By: alunyov

fbshipit-source-id: 49eadd610e54839ef8a517da30ac1bf3e0d64162
  • Loading branch information
anmonteiro authored and facebook-github-bot committed Oct 5, 2023
1 parent 6911daa commit b998f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/api-reference/types/MutationConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UploadableMap from './UploadableMap.md';
* `onError`: *_[Optional]_* `(Error) => void`. An optional callback executed if the mutation results in an error.
* `onCompleted`: *_[Optional]_* `($ElementType<TMutationConfig, 'response'>) => void`. An optional callback that is executed when the mutation completes.
* The value passed to `onCompleted` is the the mutation fragment, as read out from the store, **after** updaters and declarative mutation directives are applied. This means that data from within unmasked fragments will not be read, and records that were deleted (e.g. by `@deleteRecord`) may also be null.
* `onUnsubscribe`: *_[Optional]_* `() => void`. An optional callback that is executed when the mutation the mutation is unsubscribed, which occurs when the returned `Disposable` is disposed.
* `onUnsubscribe`: *_[Optional]_* `() => void`. An optional callback that is executed when the mutation is unsubscribed, which occurs when the returned `Disposable` is disposed.
* `optimisticResponse`: *_[Optional]_* An object whose type matches the raw response type of the mutation. Make sure you decorate your mutation with `@raw_response_type` if you are using this field.
* `optimisticUpdater`: *_[Optional]_* [`SelectorStoreUpdater`](#type-selectorstoreupdater). A callback that is executed when `commitMutation` is called, after the `optimisticResponse` has been normalized into the store.
* `updater`: *_[Optional]_* [`SelectorStoreUpdater`](#type-selectorstoreupdater). A callback that is executed when a payload is received, after the payload has been written into the store.
Expand Down

0 comments on commit b998f9b

Please sign in to comment.