dillon1000/react
Commit
Browse files Unify perform{Sync,Concurrent}WorkOnRoot implementation (#31029)
Over time the behavior of these two paths has converged to be essentially the same. So this merges them back into one function. This should save some code size and also make it harder for the behavior to accidentally diverge. (For the same reason, rolling out this change might expose some areas where we had already accidentally diverged.)
Changed paths4 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberRootScheduler.js ModifiedM packages/react-reconciler/src/ReactFiberWorkLoop.js ModifiedM packages/react-reconciler/src/__tests__/ReactSiblingPrerendering-test.js ModifiedM packages/react-reconciler/src/__tests__/ReactSuspenseyCommitPhase-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…