Language: English | Chinese
https://www.youtube.com/watch?v=05Xx_t8GC18 (Sorry, English is not good, so I use AI to synthesize speech)
What is the essence of UI state?
One main mutation causes N extra mutations. The more complex the UI, the larger the N.
(If you have ever developed more complex UI, you will resonate with it. If not, don’t worry, let's discuss it together in the Project context.)
This is the essence of UI state, also the biggest trouble of UI development.
This framework allows developers to focus only on the main mutation, extra mutations are handled automatically.
Compare with Apollo client and Relay, after mutation, you only need to save the main mutation into local cache. Neither need to manually change other affected data in the local cache, nor need to specify which queries will be affected and need to be refetched, because of all the extra mutations is handled automatically.
The project name is "graphql-state". Don't worry, it's "GraphQL style, but not GraphQL only", it can map REST service to GraphQL service.
- Project context
- Functions and GIF animation demonstrations
- Get start
- Run attached demos
- Documentation
In order to help developers debug, this framework supports chrome extension.
graphql-ts-client(3.1.11+), TypeScript DSL for GraphQL