-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Remove the usage of isMounted() #2573
Comments
👍 👍 👍 |
@subjectix I have started doing it on my PR updating the |
@oliviertassinari very nice 👍 |
You seem to be having trouble with this sometimes because you're adding and removing events that don't refer to the same function such as in Something like this would solve this:
|
@oliviertassinari @alitaheri Are we following a general strategy for removing this? I know the anti-pattern blog post mentioned an easy workaround would be to set a property on the class like |
@newoga there is. It's
Simple, efficient and pattern friendly 👍 |
@alitaheri That makes sense, thanks! |
I have updated the list of components that need to be fixed. |
Thanks @oliviertassinari! I'm hoping to start tackling this after we finish the removal |
Following https://facebook.github.io/react/blog/2015/12/16/ismounted-antipattern.html.
We need to fix those component
The text was updated successfully, but these errors were encountered: