Skip to content

Help understanding caching #1179

Answered by JoviDeCroock
pattruong asked this question in Q&A
Discussion options

You must be logged in to vote

The default cache will clear the invalidated result while it refetches, this to avoid showing stale data. This can be avoided by using a normalized cache like @urql/exchange-graphcache, with a normalized cache you can react to mutation results yourself.

If you would visit this page twice without a mutation you'd see a cache-hit

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pattruong
Comment options

@kitten
Comment options

@pattruong
Comment options

@kitten
Comment options

Answer selected by pattruong
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