Skip to content

babyfish-ct/graphql-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

An intelligent react state management framework

Language: English | Chinese

Video introduction

https://www.youtube.com/watch?v=05Xx_t8GC18 (Sorry, English is not good, so I use AI to synthesize speech)

Project description

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.

About REST

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.

Table of contents

Chrome extension

In order to help developers debug, this framework supports chrome extension.

Dependencies

graphql-ts-client(3.1.11+), TypeScript DSL for GraphQL