Skip to content

Debugging an offline mutation issue. Need help in deeply understanding the mutation flow. #1047

Answered by kitten
JohnAtFenestra asked this question in Q&A
Discussion options

You must be logged in to vote

The prerequisite is for it to be an optimistic mutation. An optimistic mutation is one that uses at least one field on the Mutation root type that has an optimistic updater defined in the cacheExchange config.

In the absence of this definition, the mutation behaves normally. That means it won’t be altered by the offlineExchange, it won’t have a potential network error intercepted, and it won’t be queued up to be rerun once you’re offline again.

The reason for that is that we’ve made one assumption: If you have a non-optimistic mutation then the cache won’t change because no updates are possible. So the only possible implementation path is to display this error to the user, which means no …

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by kitten
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@frederikhors
Comment options

Comment options

You must be logged in to vote
1 reply
@frederikhors
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants