Skip to content

I have unnecessary reference changes, is it a bug? #1493

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

You must be logged in to vote

This is not a bug, the normalized-cache will always produce fresh objects, this because it looks at the incoming query and will assemble the result you're asking for in the caching layer. This means that the results aren't referentially equal but they are deeply equal, the properties didn't change, just the object that wraps them.

When these results are in-cache the response will be quite instant so multiple queries that are synchronous aren't deduped while in-flight ones are.

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
9 replies
@JoviDeCroock
Comment options

@RIP21
Comment options

@JoviDeCroock
Comment options

@RIP21
Comment options

@RIP21
Comment options

Answer selected by RIP21
Comment options

You must be logged in to vote
3 replies
@RIP21
Comment options

@kitten
Comment options

@RIP21
Comment options

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