Skip to content

Commit b998f9b

Browse files
anmonteirofacebook-github-bot
authored andcommitted
fix(docs): remove duplicate text in MutationConfig.md (#4462)
Summary: Pull Request resolved: #4462 Reviewed By: josephsavona Differential Revision: D49951073 Pulled By: alunyov fbshipit-source-id: 49eadd610e54839ef8a517da30ac1bf3e0d64162
1 parent 6911daa commit b998f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/api-reference/types/MutationConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import UploadableMap from './UploadableMap.md';
1010
* `onError`: *_[Optional]_* `(Error) => void`. An optional callback executed if the mutation results in an error.
1111
* `onCompleted`: *_[Optional]_* `($ElementType<TMutationConfig, 'response'>) => void`. An optional callback that is executed when the mutation completes.
1212
* 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.
13-
* `onUnsubscribe`: *_[Optional]_* `() => void`. An optional callback that is executed when the mutation the mutation is unsubscribed, which occurs when the returned `Disposable` is disposed.
13+
* `onUnsubscribe`: *_[Optional]_* `() => void`. An optional callback that is executed when the mutation is unsubscribed, which occurs when the returned `Disposable` is disposed.
1414
* `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.
1515
* `optimisticUpdater`: *_[Optional]_* [`SelectorStoreUpdater`](#type-selectorstoreupdater). A callback that is executed when `commitMutation` is called, after the `optimisticResponse` has been normalized into the store.
1616
* `updater`: *_[Optional]_* [`SelectorStoreUpdater`](#type-selectorstoreupdater). A callback that is executed when a payload is received, after the payload has been written into the store.

0 commit comments

Comments
 (0)