Skip to content
New issue

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

refactor: upgrade graphiql to v2 #164

Merged
merged 7 commits into from
Oct 18, 2022
Merged

refactor: upgrade graphiql to v2 #164

merged 7 commits into from
Oct 18, 2022

Conversation

emmenko
Copy link
Member

@emmenko emmenko commented Aug 28, 2022

Comment on lines +9 to +10
-import React__default, { createContext as createContext$1, useContext, useRef, useState, useEffect, forwardRef, useLayoutEffect, useCallback, createElement, PureComponent, useId as useId$1, useMemo, Fragment as Fragment$1, memo, useReducer, Children, cloneElement } from "react";
+import React__default, { createContext as createContext$1, useContext, useRef, useState, useEffect, forwardRef, useLayoutEffect, useCallback, createElement, PureComponent, useMemo, Fragment as Fragment$1, memo, useReducer, Children, cloneElement } from "react";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some @reach/* component packages import useId (React v18) although they should be backwards compatible.

See reach/reach-ui#921

</GraphiQL>
</div>
onEditQuery={(newQuery) => setQuery(newQuery)}
plugins={[explorerPlugin]}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plugin explorer has been "copied" from here: https://github.com/graphql/graphiql/tree/main/examples/graphiql-explorer

@emmenko emmenko merged commit f1508f1 into main Oct 18, 2022
@emmenko emmenko deleted the nm-graphiql-v2 branch October 18, 2022 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant