dillon1000/react

Commit

[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
Browse files
Changed paths4 files
First-parent comparison
M packages/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…