We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 588fbce commit 8468a3bCopy full SHA for 8468a3b
.changeset/stale-gifts-promise.md
@@ -2,4 +2,4 @@
2
'@graphiql/react': patch
3
---
4
5
-Fix initialState for new hooks
+Remove initialState for new hooks, add `additionalComponent` to toolbar to allow buttons to use context
packages/graphiql-react/src/utility/context.ts
@@ -21,8 +21,7 @@ export function createContextHook<T>(context: Context<T | null>) {
21
if (value === null && options?.nonNull) {
22
throw new Error(
23
`Tried to use \`${
24
- // options.caller?.name || useGivenContext.caller.name
25
- ''
+ options.caller?.name || useGivenContext.caller.name
26
}\` without the necessary context. Make sure to render the \`${
27
context.displayName
28
}Provider\` component higher up the tree.`,
0 commit comments