[WIP] Migrate React Context to Zustand
so excited for this long awaited PR, thank you @dimaMachina for providing the impetus and this big rework to build off of!
Summary
- converts
@graphiql/reactreact contexts to use zustand with immer - moves most of this logic to
@graphiql/toolkitwhere the new store is located - most contexts in
@graphiql/reactwill be deleted, except for maybe plugin context and theme context
Checklist
- [x] editor context & hooks
- [x] schema context & hooks
- [x] execution context & hooks
- [x] graphiql working (base case)
- [ ] refactor zustand &
@graphiql/react - [ ] explorer context & hooks
- [ ] history context & hooks
- [ ] fix/migrate existing test coverage
- [ ] add new test coverage where useful
- [ ] graphiql working (fully)
- [ ] e2e passing
⚠️ No Changeset found
Latest commit: b213ceb4857c461c0c99fa65d22ea9e72d75a886
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
.
replaced by https://github.com/graphql/graphiql/pull/3946, tracking progress in https://github.com/graphql/graphiql/issues/3874