Skip to content

Query response object changes ordering of response #1184

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

You must be logged in to vote

Hm, I believe you're using @urql/exchange-graphcache, since I just realised it will always add __typename first, regardless of when it has been requested. cc @JoviDeCroock we may just want to ditch it from automatically being added to objects. Otherwise the ordering looks really consistent to me.

What happens when you receive a response from the server is that it's "enhanced" by Graphcache in that it may be mutated with resolvers when it comes back from the API. Subsequently responses are virtually generated just from cache, so you may see this small transition on an initial mount sometimes, depending on React's timing.

I believe we could totally ship an enhancement for this, since I'd sa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@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