dillon1000/react

Commit

[DevTools] Deduplicate error reporting (#37137)

Previously, every instance of ErrorBoundary, which wraps every custom
panel in extension, was subscribing to errors from the Store. This would
report the same error for every mounted panel.

ErrorBoundary now only intercepts render-time errors, and Store errors
are captured and reported in an external subscription at the place where
Store is created.
Browse files
Changed paths9 files
First-parent comparison
M packages/react-devtools-core/src/standalone.js ModifiedM packages/react-devtools-extensions/src/main/index.js ModifiedM packages/react-devtools-fusebox/src/frontend.js ModifiedM packages/react-devtools-inline/src/frontend.js ModifiedM packages/react-devtools-shared/src/Logger.js ModifiedA packages/react-devtools-shared/src/__tests__/errorReporting-test.js AddedA packages/react-devtools-shared/src/devtools/storeErrorLogger.js AddedM packages/react-devtools-shared/src/devtools/views/ErrorBoundary/ErrorBoundary.js ModifiedM packages/react-devtools-shared/src/registerDevToolsEventLogger.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…