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 7a59187 commit f86e2bcCopy full SHA for f86e2bc
.changeset/four-dogs-swim.md
@@ -0,0 +1,5 @@
1
+---
2
+'@graphiql/react': minor
3
4
+
5
+Fix: removed deprecated usage of Fn.prototype.caller
packages/graphiql-react/src/utility/context.ts
@@ -21,7 +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
+ options.caller?.name || 'a component'
25
}\` without the necessary context. Make sure to render the \`${
26
context.displayName
27
}Provider\` component higher up the tree.`,
0 commit comments