-
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
fix: address React StrictMode error when query resolves after unmount #6216
fix: address React StrictMode error when query resolves after unmount #6216
Conversation
@grxy: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
@grxy Would you mind rebasing? |
I believe I am experiencing the same problem. It would be great to get this into apollo 3 |
Got the same problem, tried your solution by manually making the changes in the node_modules folder and it fixes it. Would be nice to get this added. |
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.
Looks good, and thanks for rebasing @grxy!
This seems to break SSR. #6386 . Just spent a good amount of time tracking down the bug, and this makes an app to hang indefinitely. |
Motivation
useQuery
can log a warning in React'sStrictMode
when a component is unmounted before the query has been resolved.Changes
forceUpdate
functionChecklist:
Resolves apollographql/react-apollo#3635