question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[graphiql] `GraphiQL.visiblePlugin` breaks the Documentation Explorer

See original GitHub issue

Is 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
thomasheyenbrockcommented, Oct 10, 2022

Just released the fix for this with @graphiql/react@0.13.3 and graphiql@2.0.9

1reaction
thomasheyenbrockcommented, Oct 5, 2022

You’re right! Sorry for that, I did not read the description thoroughly enough 🙈

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found