-
Notifications
You must be signed in to change notification settings - Fork 46.8k
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
event handlers firing after unmount #7661
Comments
Sorry, but this is unfortunately not very helpful, and will likely cause this issue to be low priority in our backlog. If something is not working as intended, please try to extract a reproducing example from your app and trim it down. It takes some time but it really helps us find the cause.
This is a rather old version, and many bugs have been fixed since it was released. Do you mind reproducing this with the most recent version? Thanks. |
Going to close since there have been no updates and there was no reproducible example provided. @niole if this is still an issue with the most recent version of React please provide a small test case demonstrating the issue and we can re-open 👍 |
It looks like React 15.4.2 throws an error, |
@niole as mentioned by @gaearon:
Without a reproducible example, there's not a lot we can do to help. But it sounds like you're encountering #3298 |
@aweary sorry, I should have been clearer. I cannot reproduce this because there is a new error thrown when a user unmounts a React component that may not have existed when I found this bug in React 0.14.8. |
Do you want to request a feature or report a bug?
reporting a bug
What is the current behavior?
I'm working on a project which employs React as the view layer. I have a rather large tree of components. I ran into a bug the other day where the event which triggers click handler which ultimately unmounts the tree continues running rogue in React's DOM after the thing is unmounted and triggers other handlers. There's a simple workaround. I used
event.preventDefault
to avert any future crises.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).
I'm sure you can repro this with a little luck, enough components and no event management in your event handlers.
What is the expected behavior?
No event handlers should be triggerable after unmounting.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
browser: Chrome Version 52.0.2743.116 (64-bit)
os: Mac OS X 10.11.3
React version: 0.14.8
fiddle with (failed) repro:
https://jsfiddle.net/69z2wepo/68075/
The text was updated successfully, but these errors were encountered: