Skip to content

Commit

Permalink
docs: fix usePrettifyQuery -> usePrettifyEditors (graphql#2773)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Sep 22, 2022
1 parent 7c690c6 commit 2c95970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/migration/graphiql-2.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ There are a couple more class methods that were intended to be private and were
- `handleRunQuery`: To execute a query, use the `run` method of the `ExecutionContext`. If you want to explicitly set an operation name, call the `setOperationName` method of the `EditorContext` provider before that (passing in the operation name string as argument).
- `handleEditorRunQuery`: Use the `run` method of the `ExecutionContext`.
- `handleStopQuery`: Use the `stop` method from the `ExecutionContext`.
- `handlePrettifyQuery`: Use the `usePrettifyQuery` hook provided by `@graphiql/react` that returns this function.
- `handlePrettifyQuery`: Use the `usePrettifyEditors` hook provided by `@graphiql/react` that returns this function.
- `handleMergeQuery`: Use the `useMergeQuery` hook provided by `@graphiql/react` that returns this function.
- `handleCopyQuery`: Use the `useCopyQuery` hook provided by `@graphiql/react` that returns this function.
- `handleToggleDocs` and `handleToggleHistory`: Use the `setVisiblePlugin` method of the `PluginContext`.
Expand Down

0 comments on commit 2c95970

Please sign in to comment.