Skip to content

CacheAndNetwork fetch policy does not return the network data properly #1048

Answered by budde377
Veeksi asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, so there's no general way that the client can know which array to add the result to, or even know if the result is newly created. Imagine that the list contains saved todos would you still add this upon creation? Probably not.

So you'll have to manually refetch the query.

Replies: 14 comments 4 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
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
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vincenzopalazzo
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
4 replies
@vincenzopalazzo
Comment options

@budde377
Comment options

@Veeksi
Comment options

@budde377
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #1046 on February 18, 2022 12:25.