4 ms·
> Is there a story for offline support? Is there perhaps a react library that could help here? If the interface is graphql, you should be able to use Apollo Cl
by gedy 6y ago
> Is there a story for offline support? Is there perhaps a react library that could help here?
If the interface is graphql, you should be able to use Apollo Client[0] which has offline support.
[0] https://www.apollographql.com/docs/react/ https://www.apollographql.com/docs/react/
- jamil7 6y agoLast I checked Apollo had a persistent cache but not true offline support.
- gedy 6y agoDepends on what you mean by offline, but we're able to interact with UI and trigger mutations while offline, and it will replay the graphql calls in correct order once online again.
- jamil7 6y agoOh! That’s impressive I think last time I used it mutations couldn’t be triggered offline.
- yencabulator 6y agoWith Firestore, even when offline you still see your edits in your query results (flagged as such). This cannot be done with GraphQL, as the meaning of a GraphQL mutation is arbitrary, so the client can't change the offline query results accordingly.