dillon1000/react
Commit
Browse files 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.)
Changed paths3 files
First-parent comparisonscripts/fiber/tests-passing.txt ModifiedM src/renderers/shared/utils/ReactErrorUtils.js ModifiedM src/renderers/shared/utils/__tests__/ReactErrorUtils-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…