dillon1000/react

Commit

Bugfix: nextFlushedRoot should always be set when performing work (#11558)

Fixes an issue where performWorkOnRoot was called, but nextFlushedRoot
was not set. This happened in a special branch where we synchronously
flush newly mounted DOM trees outside the normal work loop.

Arguably, performWorkOnRoot should read from the globally assigned root
and expiration time instead of accepting arguments, since those
arguments are expected to be the same as the global values, anyway. I
decided against that since the global values could be null, so reading
from them would require extra null checks.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactErrorBoundaries-test.js ModifiedM packages/react-reconciler/src/ReactFiberScheduler.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…