Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Support application restarts #116

Open
harshithdwivedi opened this issue Aug 13, 2019 · 1 comment
Open

Support application restarts #116

harshithdwivedi opened this issue Aug 13, 2019 · 1 comment

Comments

@harshithdwivedi
Copy link
Collaborator

harshithdwivedi commented Aug 13, 2019

See if the InterceptorRequest can be saved to the db

To support offline mutations even when the app is closed, we need to persist the requests in our db.

https://github.com/apollographql/apollo-android/blob/master/apollo-runtime/src/main/java/com/apollographql/apollo/interceptor/ApolloInterceptor.java#L114

Not of immediate concern but something that we should be aware of.

@wtrocki wtrocki changed the title See if the InterceptorRequest can be saved to the db Support application restarts Oct 3, 2019
@wtrocki
Copy link
Contributor

wtrocki commented Oct 3, 2019

I have checked that and we cannnot save this and this even makes no sense.
We need to simply execute mutations again based on the database entires on application start.
Same as we do in offix-js. This is very trivial task but it will make sure that data is not lost

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants