Skip to content

Missing getDerivedStateFromError #1076

@nafg

Description

@nafg

When using componentDidCatch I get a big error log in the console:

Warning: chesednow.people.js.AsyncAutocomplete: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.

with a whole stack trace.

It seems to be generated by React dev tools.

But scalajs-react does not provide this lifecycle method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions