5 ms·
As you note in your article, Apollo's gql client has optimistic UI, but it looks like a pain. The Apollo cache seems to be powerful enough normalize the way yo
by rattray 6y ago
As you note in your article, Apollo's gql client has optimistic UI, but it looks like a pain.
The Apollo cache seems to be powerful enough normalize the way you want, perhaps with some extra code: https://www.apollographql.com/docs/react/caching/cache-configuration/ https://www.apollographql.com/docs/react/caching/cache-confi...
Apollo also claims support for cache persistence, eg to localstorage: https://www.apollographql.com/docs/react/caching/advanced-topics/#cache-persistence https://www.apollographql.com/docs/react/caching/advanced-to...
I haven't used Apollo myself so maybe it's not as usable or powerful as it claims to be.