dillon1000/react
Commit
Browse files [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.
Changed paths5 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…