-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(graphcache): consistent __typename removal #2718
Conversation
🦋 Changeset detectedLatest commit: c7eca9f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
b947f5e
to
68fbc42
Compare
Superseded by da121d4 |
Testing a different approach this in #2736, which instead tries to preserve the original document and continue to prevent adding |
Summary
While investigating #2701 I noticed that we invalidate the result for a cache-hit due to not having
__typename
there, on a closer look this is because when wefoward
we add the__typename
informatDocument
, this is also returned to the user because we have changed the operation itself, but when we get a result from cache we use the supplied query which might be missing these__typename
additions.To counter-act this we will always query the result with the original query in mind
Set of changes