japgolly / scalajs-react

Facebook's React on Scala.JS
https://japgolly.github.io/scalajs-react/
Apache License 2.0
1.64k stars 231 forks source link

Missing getDerivedStateFromError #1076

Open nafg opened 1 year ago

nafg commented 1 year ago

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.