dillon1000/react

Commit

Remove unnecessary throw catch (#19044)

This was originally added so you could use "break on caught exceptions"
but that feature is pretty useless these days since it's used for feature
detection and Suspense.

The better pattern is to use the stack trace, jump to source and set a
break point here.

Since DevTools injects its own console.error, we could inject a "debugger"
statement in there. Conditionally. E.g. React DevTools could have a flag
to toggle "break on warnings".
Browse files
Changed paths1 file
First-parent comparison
M packages/shared/consoleWithStackDev.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…