-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
Render during reconciliation causes NPE #6027
Comments
Probably affects unstable_subtree also. I don't think we need a fix this for the v15 milestone since it was a regression introduced in 0.14 and this is the first we're hearing about it, but it is a valid bug. |
@jimfb Would the check in the PR I linked be a sufficient check to add? I would be more than happy to add it in myself. |
@sambev Sorry, I'm not sure I understand your question. The PR you linked was merged, but the problem still exists on master. What specifically would be the fix here? |
Fixed in #6028 and verified in http://jsfiddle.net/uptxgjvd/ |
I have a view with a controlled select on it. When the onChange event fires, the resulting function actually changes the view, removing the select. Then I get this error:
Uncaught TypeError: Cannot set property 'pendingUpdate' of null
Reproduced here:
https://jsfiddle.net/wntgpwcx/5/ (react 0.14.7)
I also noticed I don't get the same error in an older version (0.13.1)
https://jsfiddle.net/wntgpwcx/6/
The line that throws is in ReactDOMSelect L183:
I was able to see a fix for a similar situation here:
https://github.com/facebook/react/pull/4624/files
I don't know if a similar check could be applied here, or maybe I just shouldn't remove my select as a result of an onChange event?
The text was updated successfully, but these errors were encountered: