Skip to content

alternative state management RFC #2904

@jonathanawesome

Description

@jonathanawesome

As per the discussion at this week's working group meeting, I'll be putting together a proposal for replacing the use of React Context with an alternative state manager. Goals for this RFC are to reduce component complexity in the graphiql-react package and to unlock the possibility to more easily provide GraphQL IDE building blocks for non-React frameworks.

Here are the tasks that I'd like to accomplish to make this a successful RFC:

  • Add a Ladle installation as a component development environment
  • Pull explorer plugin out of graphiql-react and into a separate plugin package
    • rewrite context -> zustand
    • refactor tests
  • Pull history plugin out of graphiql-react and into a separate plugin package
    • rewrite context -> zustand
    • refactor tests
  • Add a new store folder to graphiql-toolkit that contains state slices that match up with existing contexts
  • storage
  • editor
  • schema
  • execution
  • plugin

Metadata

Metadata

Labels

graphiqlproposalrfcRequest for Commentwork-in-progressnot ready to merge yet, PR is available for demonstration/review purposes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions