Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
RepoSync with changes to commitMutation and updates to product code…
Browse files Browse the repository at this point in the history
… to remove explicit type annotations and use typed `graphql` tags for mutations.

Differential Revision: D48543114

Pull Request resolved: #2277
  • Loading branch information
alunyov authored Aug 23, 2023
1 parent dba6c40 commit 0c62c96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/recoil-relay/RecoilRelay_graphQLMutationEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function graphQLMutationEffect<
const mutationID = ++currentMutationID;
const mutationVariables = variables(newValue);
if (mutationVariables != null) {
commitMutation<$FlowFixMe>(environment, {
commitMutation(environment, {
mutation,
variables: mutationVariables,
onError: error => {
Expand All @@ -100,6 +100,8 @@ function graphQLMutationEffect<
},
updater,
optimisticUpdater,
/* $FlowFixMe[incompatible-call] error exposed when improving flow
* typing of commitMutation */
optimisticResponse: optimisticResponse?.(newValue),
uploadables,
});
Expand Down

0 comments on commit 0c62c96

Please sign in to comment.