[graphiql] `GraphiQL.visiblePlugin` breaks the Documentation Explorer
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Current Behavior
When setting the GraphiQL.visiblePlugin
property, any navigation in the Documentation Explorer opens the “visible” plugin. Not the correct Documentation Explorer page.
Expected Behavior
visiblePlugin
shouldn’t break the Documentation Explorer
Steps To Reproduce
BUGIN = {
title: 'Bug Example',
icon: () => {
return <div>Bug</div>;
},
content: () => <div>Bug Content</div>
}
const App = () => (
<GraphiQL
plugins={[BUGIN]}
visiblePlugin={BUGIN}
/>
);
Then try navigating inside the Documentation Explorer
Module pattern
- graphiql-umd
- graphiql-esm
- graphiql-commonjs
Environment
- GraphiQL Version: 2.0.8
- OS: OSX 12.6
- Browser: Firefox 106 and Chrome 105
- Bundler: Webpack 5
- `react` Version: 17
- `graphql` Version: 16
Anything else?
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
GraphiQL 2 Design · Discussion #2216 - GitHub
So my proposal here would be to either use Query/Mutation/Subscription or Query Fields/Mutation Fields/Subscription Fields. I am skeptical about merging both ...
Read more >Additional Explorer features - Apollo GraphQL Docs
Toggle between table and JSON layout from the top of the Explorer's Response panel. You can view an operation's response as JSON or...
Read more >GraphQL - Sanity.io
The GraphQL API generally has the same rules as the GROQ API – dataset visibility is respected. Authenticated users see only the documents...
Read more >Handling GraphQL errors like a champ with unions and ...
Error handling can be frustrating in GraphQL. This post shows you how to use unions and interfaces to handle errors in a more...
Read more >Three awesome tools for GraphQL developer experience
If you wonder about other queries this particular GraphQL endpoint has, please don't hesitate to click on the Docs tab on the right...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just released the fix for this with
@graphiql/react@0.13.3
andgraphiql@2.0.9
You’re right! Sorry for that, I did not read the description thoroughly enough 🙈