0.22.0 and 0.22.1 seems to have undocumented breaking changes, how should the community proceed with the upgrade? #3600
-
Ever since 0.22.0 I cannot boot the app, something has changed that breaks my app. Either I am doing something wrong and was just lucky this always worked? Or something bad happened. My usage: return (
<GraphiQL
fetcher={fetcher}
query={query}
variables={variables}
headers={headers}
schema={schema}
plugins={[explorer, collectionPlugin]}
defaultHeaders={DEFAULT_HEADERS}
defaultQuery={defaultQuery}
>
<GraphiQL.Toolbar>
<PrettierButton /> // <-- throws since 0.22.0+
<MergeFragmentsButton /> // <-- throws since 0.22.0+
<ShareButton /> // <-- throws since 0.22.0+
<AddToCollectionButton /> // <-- etc.
<AuthButton />
<DisplayMetaButton />
<SkipCacheButton />
</GraphiQL.Toolbar>
<GraphiQL.Logo />
</GraphiQL>
) Since 0.22.0 this usage is no longer allowed, for some reason. Each component in the list within
The only packages from your mono repo I am using are these: "@graphiql/plugin-explorer": "3.0.1",
"@graphiql/react": "0.22.1",
"@graphiql/toolkit": "0.9.1", Any idea what is wrong here? Pinging @thomasheyenbrock since he is the one that authored 0.22.0 and 0.22.1 and @acao for merging. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
thanks for this @klippx ! I'm sorry you're having this issue. you tagged the right people, we will check it out! currently our example implementations of this API are static and don't include stateful hooks, which we should fix! I can confirm this was working when I fixed the Saleor GraphiQL instance last fall |
Beta Was this translation helpful? Give feedback.
-
Hey @klippx 👋 thanks for raising this! The only change in 0.22.0 was this one, which did not in any way change the way how state or context is managed. Some questions:
|
Beta Was this translation helpful? Give feedback.
A common source for this might be mismatching versions of
@graphiql/react
. So if you're also using thegraphiql
package it might be worth checking which version of@graphiql/react
it uses as sub-dependency.