Skip to content

Commit 679eea3

Browse files
committed
Extract layout effects to separate functions
There's a lot of duplicated code between commitLayoutEffectOnFiber and the "reappear layout effects" path that happens when an Offscreen tree goes from hidden back to visible. I'm going to refactor these to share more of the same code. As a first step, this extracts the shared parts into separate functions. This may not save much on code size because Closure will likely inline some of it, anyway, but it makes it harder for the two paths to accidentally diverge.
1 parent 41287d4 commit 679eea3

File tree

2 files changed

+588
-606
lines changed

2 files changed

+588
-606
lines changed

0 commit comments

Comments
 (0)