RFC X / Rejected

feat: schema provider and operation session context using context/useReducer

Opened on
Closed on

At a glance

Project
GraphiQL
Identifier
ide-1359
Stage
RFC X / Rejected
Champion
@acao
Updated
2026-11-26
Latest activity
Pull request closed on
Source

Pull request description

please take this and run with it tomorrow however you see fit! it introduces:

  • useReducers which is meant to expose interfaces (to plugins eventually down the line, but for now we will supply them as props via the provider). glad to field suggestions on how to re-architect this!
  • a few useReducer related utilities inspired from previous redux workflows
  • a test utility for RTL, for testing provider output more readily
  • SchemaProvider, SchemaContext, etc. feel free to combine this provider into a migration provider like you were discussing earlier @zephraph

typescript types are not happy yet because I'm still wrapping my head around typescript + redux style patterns

note:

some features are temporarily disabled by this effort in the interest of further iterations before we release another alpha:

  • subscriptions support
  • multiple operations per query
  • persisted operations (though your previous query history works in the left sidebar, soon to be deprecated)

Timeline

April 2020

March 2020

February 2020