Skip to content

Error boundary bug #12497

@thysultan

Description

@thysultan

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions