From b998f9b650895aeb2e3fccce388ba9a2601abebc Mon Sep 17 00:00:00 2001 From: Antonio Nuno Monteiro Date: Thu, 5 Oct 2023 16:56:59 -0700 Subject: [PATCH] fix(docs): remove duplicate text in MutationConfig.md (#4462) Summary: Pull Request resolved: https://github.com/facebook/relay/pull/4462 Reviewed By: josephsavona Differential Revision: D49951073 Pulled By: alunyov fbshipit-source-id: 49eadd610e54839ef8a517da30ac1bf3e0d64162 --- website/docs/api-reference/types/MutationConfig.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api-reference/types/MutationConfig.md b/website/docs/api-reference/types/MutationConfig.md index 4a517246ae310..a0628ccc9f5f1 100644 --- a/website/docs/api-reference/types/MutationConfig.md +++ b/website/docs/api-reference/types/MutationConfig.md @@ -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) => 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.