Missing getDerivedStateFromError
nafg opened this issue · 0 comments
nafg commented
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.