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
Pull request description
please take this and run with it tomorrow however you see fit! it introduces:
useReducerswhich 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
useReducerrelated 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
- Pull request closed on
- 3 commits pushed on
- @cshaver committed "feat: schema provider - query facts out of session state, unwrap reducer"
- @ryan-m-walker committed "fix: fixed import pathing issue"
- @ryan-m-walker committed "feat: action types"
- 5 commits pushed on
- @ryan-m-walker committed "feat: updated session reducer to have better typescript typings using…"
- @ryan-m-walker committed "feat: updating typings and structure of schema reducer"
- @ryan-m-walker committed "fix: removed comment"
- @ryan-m-walker committed "feat: added observable support back to fetcher function"
- @ryan-m-walker committed "feat: standardized error handling"
March 2020
- @acao committed "Merge branch 'master' into feat/use-context-hooks" on
- @acao committed "feat: use static local/remote schemas" on
- Top comment edited on by acao
- 4 commits pushed on
- @acao committed "chore: temporarily disable graphiql unit tests"
- @acao committed "chore: temporarily disable e2e tests for build"
- @acao committed "chore: use nullish coalescing operator, thanks @zephgraph"
- @acao committed "chore: cleanup ExecuteButton"
- @acao committed "feat: doc explorer and query history using context" on
- @acao committed "feat: results viewer as FC, purely context for op + results" on
- @acao committed "feat: use context for schema and sesion state" on
February 2020
- @just-be-dev committed "WIP: feat: Add migration context to enable GraphiQL refactoring (#1380)" on
- @acao committed "chore: cleanup, ts improvements" on
- Pull request created on by acao
- @acao committed "feat: schema provider using context/useReducer" on