From 0bf353a3c9f023adcebdae69e70595f45409cad1 Mon Sep 17 00:00:00 2001 From: Joseph Dailey Date: Fri, 16 Jun 2023 10:34:19 -0700 Subject: [PATCH] Update commit-mutation.md (#4346) Summary: This page describes how to use `commitMutation` and includes a code snippet. The snippet contains a typo. This PR fixes the typo by having the snippet import `commitMutation` instead of `useMutation`. Pull Request resolved: https://github.com/facebook/relay/pull/4346 Reviewed By: tyao1 Differential Revision: D46782486 Privacy Context Container: L1125407 Pulled By: captbaritone fbshipit-source-id: c0de54b49f4fc1603e608306ea3b7cbabbb551ef --- .../api-reference/relay-runtime/commit-mutation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-v14.0.0/api-reference/relay-runtime/commit-mutation.md b/website/versioned_docs/version-v14.0.0/api-reference/relay-runtime/commit-mutation.md index e9a3bb2f3c376..e45eb1053e6b7 100644 --- a/website/versioned_docs/version-v14.0.0/api-reference/relay-runtime/commit-mutation.md +++ b/website/versioned_docs/version-v14.0.0/api-reference/relay-runtime/commit-mutation.md @@ -22,7 +22,7 @@ See also the [`useMutation`](../use-mutation/) API and [Guide to Updating Data]( import type {FeedbackLikeMutation} from 'FeedbackLikeMutation.graphql'; const React = require('React'); -const {graphql, useMutation} = require('react-relay'); +const {graphql, commitMutation} = require('react-relay'); function likeFeedback(environment: IEnvironment): Disposable { return commitMutation(environment, {