apollo-cache-persist
offix
apollo-cache-persist | offix | |
---|---|---|
3 | 2 | |
1,363 | 771 | |
0.1% | - | |
6.4 | 0.0 | |
5 days ago | about 1 year ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
apollo-cache-persist
-
GraphQL making its way into a Twitter discussion about latency is not what I expected
Apollo client comes with an in-memory cache which can be persisted to various storage providers with an additional official library. Obviously not as easy as relying on browser caching, but there are lots of options available. I often find myself having to disable client-side response caching anyway, as most of the data for the sites I work on needs to be as up-to-date as possible.
-
Offline usage with Apollo Client?
Yes they have but using key value storage https://github.com/apollographql/apollo-cache-persist, for better performance use mmkv instead of async storage
-
Apollo Client || Add to cart an item on the client side
I did find https://github.com/apollographql/apollo-cache-persist however, but I've never used it so can't tell you much about it.
offix
-
Downsides of Offline First
Yeah,I'm trying to implement an electron offline first app that syncs, there seems to readymade solution.
Stuff like https://github.com/aerogear/offix seem to be in the right direction of what I'm looking for but not nearly mature enough.
I don't want to pu to much effort on the app so I would like something more or less ready made, preferably with graphql apis.
Any suggestions welcome.
-
Is GraphQL a wrong choice for offline-first apps?
I ended up with Offix and had to do optimistic cache handling, and I wrote up my experiences in a GitHub ticket on their repo with code as guidance for others. https://github.com/aerogear/offix/issues/715
What are some alternatives?
destreamer - Save Microsoft Stream videos for offline enjoyment.
howtographql - The Fullstack Tutorial for GraphQL
graphql-shield - 🛡 A GraphQL tool to ease the creation of permission layer.
redwood - The App Framework for Startups
apollo-log - A logging extension for the Apollo GraphQL Server
absurd-sql - sqlite3 in ur indexeddb (hopefully a better backend soon)
noms - The versioned, forkable, syncable database
crdt-example-app - A full implementation of CRDTs using hybrid logical clocks and a demo app that uses it
cashew - 🐿 A flexible and straightforward library that caches HTTP requests in Angular
redux-saga - An alternative side effect model for Redux apps
distributed-counters - Experiments with distributed counters