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

Missing getDerivedStateFromError #1076

Open
nafg opened this issue Aug 1, 2022 · 0 comments
Open

Missing getDerivedStateFromError #1076

nafg opened this issue Aug 1, 2022 · 0 comments

Comments

@nafg
Copy link

nafg commented Aug 1, 2022

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.

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

No branches or pull requests

1 participant