graphiql icon indicating copy to clipboard operation
graphiql copied to clipboard

[WIP] Migrate React Context to Zustand

Open acao opened this issue 1 year ago • 1 comments

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/react react contexts to use zustand with immer
  • moves most of this logic to @graphiql/toolkit where the new store is located
  • most contexts in @graphiql/react will 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

acao avatar Aug 30 '24 11:08 acao

⚠️ 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

changeset-bot[bot] avatar Aug 30 '24 11:08 changeset-bot[bot]

.

Joanna2473 avatar Feb 06 '25 07:02 Joanna2473

replaced by https://github.com/graphql/graphiql/pull/3946, tracking progress in https://github.com/graphql/graphiql/issues/3874

dimaMachina avatar May 13 '25 22:05 dimaMachina