-
Notifications
You must be signed in to change notification settings - Fork 48.5k
RC1: Unexpected detached subtree found (possible regression?) #4865
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
Comments
I was unmounting a root during a keyboard event which caused this to happen. I think this has always been a problem? Perhaps we've only been lucky... leaving open just to be sure. EDIT: Could it make sense to have something along the lines of |
This invariant was new in this release. We also hit one case at FB that I haven't yet investigated. Probably need to change something for the final release. |
I have seen this on RC1 can't find a sequence of actions to repeat it. |
I'm running into this issue as well when conditionally rendering based on state. Not sure how to boil it down to a simple reproducible bug report yet. |
My issue only happens when I am leveraging FastClick. Didn't happen before 0.14. |
I've found it is because the events are handled in a different order with fastclick, so the batching gets weird... |
e.g. click gets fired before touchEnd, so click handler setState to remove subtree, and then react tries to do something with it in touch end perhaps? |
Fixes facebook#4865 and also seems to fixes facebook#3790.
Since upgrading from beta3 to rc1 I've seen this error a few times in production. Haven't been able to trace the source yet though.
cc @spicyj
The text was updated successfully, but these errors were encountered: