Skip to content

Commit

Permalink
[DevTools] Rename mountFiberRecursively/updateFiberRecursively (#30586)
Browse files Browse the repository at this point in the history
This is just for clarity at first.

Before: 
- mountFiberRecursively accepts a set of children and flag that says
whether to just do one
- updateFiberRecursively accepts a fiber and loops over its children
- unmountFiberChildrenRecursively accepts a fiber and loops over its
children

After:
- mountFiberRecursively accepts a Fiber and calls
mountChildrenRecursively
- updateFiberRecursively accepts a Fiber and calls
updateChildrenRecursively
- unmountFiberRecursively accepts a Fiber and calls
unmountChildrenRecursively
- mountChildrenRecursively accepts a set of children and loops over each
one
- updateChildrenRecursively accepts a set of children and loops over
each one
- unmountChildrenRecursively accepts a set of children and loops over
each one

So now there's one place where things happens for the single item and
one place where we do the loop.
  • Loading branch information
sebmarkbage authored Aug 2, 2024
1 parent ed94ea1 commit aa8469f
Showing 1 changed file with 170 additions and 142 deletions.
Loading

0 comments on commit aa8469f

Please sign in to comment.