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

WIP: feat: Add migration context to enable GraphiQL refactoring #1380

Merged
merged 3 commits into from
Feb 28, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix refs bug by properly accessing current
  • Loading branch information
zephraph committed Feb 28, 2020
commit e482c85abce478a5d09e5692e4029f84cde56645
2 changes: 1 addition & 1 deletion packages/graphiql/src/state/MigrationContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const AggregateContext: React.FC = ({ children }) => {
const contexts = useRef({ schema: schemaContext }); // 2. add it to the migration's aggregate context

return (
<MigrationContext.Provider value={contexts}>
<MigrationContext.Provider value={contexts.current}>
{children}
</MigrationContext.Provider>
);
Expand Down