RFC 3 / Accepted

alternative state management RFC

Opened on
Closed on

At a glance

Project
GraphiQL
Identifier
ide-2904
Stage
RFC 3 / Accepted
Champion
@jonathanawesome
Updated
2026-11-26
Latest activity
Issue closed on
Source

Issue description

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

Timeline