We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When passing a ToolbarButton to the toolbar prop of <GraphiQL> (via additionalContent) an error is thrown:
ToolbarButton
toolbar
<GraphiQL>
additionalContent
Uncaught Error: Tooltip must be used within TooltipProvider
Tooltip
TooltipProvider
<GraphiQL //… toolbar={{ additionalContent: <ToolbarButton label="Hello" />, }} //… />
At least this is the case for https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-graphiql-explorer/src/app.jsx#L173
Using the ToolbarButton is possible without an error
<GraphiQL //… toolbar={{ additionalContent: <ToolbarButton label="Hello" />, }} //… />``` ### Environment * GraphiQL Version: 3.7.1 (@graphiql/react@0.26.2) * OS: all * Browser: all * Bundler: * `react` Version: * `graphql` Version: ### Anything else? _No response_
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
Current Behavior
When passing a
ToolbarButton
to thetoolbar
prop of<GraphiQL>
(viaadditionalContent
) an error is thrown:At least this is the case for https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-graphiql-explorer/src/app.jsx#L173
Expected Behavior
Using the
ToolbarButton
is possible without an errorSteps To Reproduce
The text was updated successfully, but these errors were encountered: