Skip to content

Conversation

@x-ji
Copy link

@x-ji x-ji commented May 15, 2021

According to the page https://www.apollographql.com/docs/react/caching/cache-interaction/, one should not modify the object returned by store.readQuery directly, as same object might be returned to multiple components. One should rather create a copy and pass that copy to store.writeQuery.

I hope my edits are correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants