-
Notifications
You must be signed in to change notification settings - Fork 68
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: state update on an unmounted component #522
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update some of our documentation based on your changes. You can run |
Codecov Report
@@ Coverage Diff @@
## master #522 +/- ##
==========================================
+ Coverage 95.00% 95.31% +0.31%
==========================================
Files 1 1
Lines 60 64 +4
Branches 13 15 +2
==========================================
+ Hits 57 61 +4
Misses 2 2
Partials 1 1
Continue to review full report at Codecov.
|
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.
Thanks for submitting this pull request! 🎉
I left some nitpicking.
useEffect(() => { | ||
return () => { | ||
isMountedRef.current = false; | ||
}; | ||
}, []); |
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.
useEffect(() => { | |
return () => { | |
isMountedRef.current = false; | |
}; | |
}, []); | |
useEffect(() => () => { | |
isMountedRef.current = false; | |
}, []); |
## [1.2.1](v1.2.0...v1.2.1) (2021-03-09) ### Bug Fixes * state update on an unmounted component ([#522](#522)) ([0e873f4](0e873f4))
🎉 This PR is included in version 1.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.