dillon1000/react
Commit
Browse files [act] reset scope depth on synchronous errors (#15937)
* reset scope depth on synchronous errors we weren't resetting the acting scope depth on sync errors thrown in the callback. this fixes that. * typos * add a test to make sure sync error propagate
Changed paths4 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactTestUtilsAct-test.js ModifiedM packages/react-dom/src/test-utils/ReactTestUtilsAct.js ModifiedM packages/react-noop-renderer/src/createReactNoop.js ModifiedM packages/react-test-renderer/src/ReactTestRendererAct.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…