-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
QueryReference
: check for resolve
/reject
#10999
QueryReference
: check for resolve
/reject
#10999
Conversation
🦋 Changeset detectedLatest commit: fcda4a9 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 |
apollo-client/src/react/cache/QueryReference.ts Lines 73 to 78 in 816a7b6
This code path is not always reached, so |
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks great, but would love to see a test to ensure we don't introduce regressions later. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind writing a test for this? I'll be refactoring this a bit and want to make sure I don't introduce a regression. According to the discord message, it looks like subsequent fetches after a cache hit will cause this. Would love to have a test that shows this as fixed. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can try. I have to admit I didn't have enough context on how to potentially trigger this.
/release:pr |
A new release has been made for this PR. You can install it with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
This came up in this Discord message
Checklist: