diff --git a/CHANGELOG.md b/CHANGELOG.md index 05c75b72..b5e26f79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- GraphiQL Explorer Plugin initialization due to upstream implementation pattern change + ### Removed ## Version 0.6.1 - 2023-07-05 diff --git a/app/graphiql.html b/app/graphiql.html index 60c55124..8bf3453d 100644 --- a/app/graphiql.html +++ b/app/graphiql.html @@ -31,14 +31,11 @@ const fetcher = GraphiQL.createFetcher({ url: '' }) function GraphiQLWithExplorer() { - const [query, setQuery] = React.useState() - const explorerPlugin = GraphiQLPluginExplorer.useExplorerPlugin({ query, onEdit: setQuery }) + const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin() return React.createElement(GraphiQL, { fetcher, defaultEditorToolsVisibility: true, - plugins: [explorerPlugin], - query, - onEditQuery: setQuery + plugins: [explorerPlugin] }) }