Skip to content
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

Error boundary bug #12497

Closed
thysultan opened this issue Mar 30, 2018 · 3 comments
Closed

Error boundary bug #12497

thysultan opened this issue Mar 30, 2018 · 3 comments

Comments

@thysultan
Copy link

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

An internal error is raised when the error tries to propagate.

Uncaught TypeError: Cannot read property 'return' of null
Uncaught TypeError: Cannot read property 'return' of null
    at renderRoot (react-dom.development.js:12223)
    at performWorkOnRoot (react-dom.development.js:12764)
    at performWork (react-dom.development.js:12685)
    at performSyncWork (react-dom.development.js:12662)
    at requestWork (react-dom.development.js:12562)
    at scheduleWorkImpl (react-dom.development.js:12437)
    at scheduleWork (react-dom.development.js:12397)
    at scheduleRootUpdate (react-dom.development.js:13025)
    at updateContainerAtExpirationTime (react-dom.development.js:13053)
    at Object.updateContainer (react-dom.development.js:13072)

https://jsfiddle.net/thysultan/Luktwrdm/264/

What is the expected behavior?

Error should propagate to error boundary.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

16.3.0

@jquense
Copy link
Contributor

jquense commented Mar 30, 2018

yeeesss. This should be a repro of #12449

@gaearon
Copy link
Collaborator

gaearon commented Apr 1, 2018

Closing in favor of #12449. This is very helpful, thanks.

@gaearon gaearon closed this as completed Apr 1, 2018
@gaearon
Copy link
Collaborator

gaearon commented Apr 3, 2018

Fixed in #12508

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants