Skip to content

Opt out of next.js componentDidCatch #4469

@brainkim

Description

@brainkim

Feature request

Is your feature request related to a problem? Please describe.

I want to have errors thrown in development so I can use the chrome debugger’s pause on exceptions and inspect the error’s environment. The current error rendering provided by next.js swallows the exception and is a lot less useful than chrome’s debugger.

Describe the solution you'd like

Throwing an error in a custom _app.js causes the error to be caught by some parent component (I think AppContainer?) Maybe a solution is to stop catching errors if we implement a componentDidCatch in App.js

Describe alternatives you've considered

Being a better programmer. (💩 impossible for me tho 💩)

Additional context

Pls. Stop catching my errors when you don’t even catch them in production 😭😭😭
The devtools feature I’m talking about
screen shot 2018-05-24 at 11 30 25 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions