React still showing errors after catching with ErrorBoundary

前端 未结 1 941
渐次进展
渐次进展 2020-12-29 03:01

My React app is catching the error and correctly displaying my custom error message, but after a second it still displays the original error logging. So the fallback UI then

相关标签:
1条回答
  • 2020-12-29 03:37

    I think I got it. The create-react-app package has a tool called the react-overlay-error. This shows error messages from the console as an overlay over your app so you can easily check the stack trace and debug.

    This won't show up in production mode, it's just a development tool duplicating the normal browser console.

    You can hide this by pressing Escape to see your overlay again.

    If you want to get rid of it, this answer may help.

    0 讨论(0)
提交回复
热议问题