dillon1000/react

Commit

invokeGuardedCallback should work when nested

Added a guard in the global error event listener to prevent nested
errors from being captured higher up the stack.

Also found a bug where the DEV version of invokeGuardedCallback would
infinite loop if there were nested invocations with the same name. Fixed
by appending the depth to the fake event name. (I'm actually not sure
why this is necessary.)
Browse files
Changed paths3 files
First-parent comparison
M scripts/fiber/tests-passing.txt ModifiedM src/renderers/shared/utils/ReactErrorUtils.js ModifiedM src/renderers/shared/utils/__tests__/ReactErrorUtils-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…