dillon1000/react

Commit

Allow the user to opt out of seeing "The above error..." addendum (#13384)

* Remove e.suppressReactErrorLogging check before last resort throw

It's unnecessary here. It was here because this method called console.error().
But we now rethrow with a clean stack, and that's worth doing regardless of whether the logging is silenced.

* Don't print error addendum if 'error' event got preventDefault()

* Add fixtures

* Use an expando property instead of a WeakSet

* Make it a bit less fragile

* Clarify comments
Browse files
Changed paths6 files
First-parent comparison
M fixtures/dom/src/components/fixtures/error-handling/index.js ModifiedM fixtures/dom/src/style.css ModifiedM packages/react-reconciler/src/ReactFiberCommitWork.js ModifiedM packages/react-reconciler/src/ReactFiberErrorLogger.js ModifiedM packages/react-reconciler/src/ReactFiberScheduler.js ModifiedM packages/shared/invokeGuardedCallback.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…