dillon1000/react

Commit

[act] flush work correctly without a mocked scheduler (#16223)

Not returning the value of flushPassiveEffects() in flushWork() meant that with async act, we wouldn't flush all work with cascading effects. This PR fixes that oversight, and adds some tests to catch this in the future.
Browse files
Changed paths5 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactTestUtilsAct-test.js ModifiedA packages/react-dom/src/__tests__/ReactTestUtilsActUnmockedScheduler-test.js AddedM 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…