Kashuab / mobx-depot

Scaffold MobX-powered models, queries and mutations with your GraphQL schema.
https://mobx-depot.dev
MIT License
8 stars 0 forks source link

Implement cache management #32

Closed Kashuab closed 1 year ago

Kashuab commented 1 year ago

We should support the cache policies that mst-gql supports:

Kashuab commented 1 year ago

Done. Implemented DepotGQLClient which acts as a wrapper around GraphQLClient from graphql-request, which adds a cache layer that integrates with the RootStore.

See docs: https://mobx-depot.dev/docs/caching