Skip to content

Repeated calls to cache.updateQuery do not perform cumulative effects #1073

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

You must be logged in to vote

That's pretty odd! I'm trying to think of what could be causing this, because optimistic updates should always allow you to cumulatively add to a list already. So let's debug this and maybe I can write a new test for our test suite to make sure that this is indeed broken and then subsequently fix it if it's indeed buggy.

So on the second optimistic createRecommendation call of updates.Mutation.createRecommendation, have you verified that it's indeed called, that the list is missing the last recommendation, or whether any other weird behaviour already occurs there?

You said that it's called but lacking the previous recommendation; that's all while the device was offline and only optimistic…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@kitten
Comment options

@codazzo
Comment options

@kitten
Comment options

@codazzo
Comment options

@kitten
Comment options

Answer selected by kitten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants