dillon1000/react

Commit

[Fiber] Move runWithFiberInDEV from CommitWork to CommitEffects (#30882)

Stacked on #30881.

Move `runWithFiberInDEV` from the recursive part of the commit phase and
instead wrap each call into user space. These should really map 1:1 with
where we're using `try/catch` since that's where we're calling into user
space.

The goal of this is to avoid the extra stack frames added by
`enableOwnerStacks` in the recursive parts to avoid stack overflow. This
way we only have a couple of extra at the end of the stack instead of a
couple of extra at every depth of the tree.
Browse files
Changed paths4 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberCommitEffects.js ModifiedM packages/react-reconciler/src/ReactFiberCommitHostEffects.js ModifiedM packages/react-reconciler/src/ReactFiberCommitWork.js ModifiedM packages/react-reconciler/src/__tests__/ReactSuspenseCallback-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…