(finishedWork)
| 24630 | } |
| 24631 | |
| 24632 | function commitReconciliationEffects(finishedWork) { |
| 24633 | // Placement effects (insertions, reorders) can be scheduled on any fiber |
| 24634 | // type. They needs to happen after the children effects have fired, but |
| 24635 | // before the effects on this fiber have fired. |
| 24636 | var flags = finishedWork.flags; |
| 24637 | |
| 24638 | if (flags & Placement) { |
| 24639 | try { |
| 24640 | commitPlacement(finishedWork); |
| 24641 | } catch (error) { |
| 24642 | captureCommitPhaseError(finishedWork, finishedWork.return, error); |
| 24643 | } // Clear the "placement" from effect tag so that we know that this is |
| 24644 | // inserted, before any life-cycles like componentDidMount gets called. |
| 24645 | // TODO: findDOMNode doesn't rely on this any more but isMounted does |
| 24646 | // and isMounted is deprecated anyway so we should be able to kill this. |
| 24647 | |
| 24648 | |
| 24649 | finishedWork.flags &= ~Placement; |
| 24650 | } |
| 24651 | |
| 24652 | if (flags & Hydrating) { |
| 24653 | finishedWork.flags &= ~Hydrating; |
| 24654 | } |
| 24655 | } |
| 24656 | |
| 24657 | function commitLayoutEffects(finishedWork, root, committedLanes) { |
| 24658 | inProgressLanes = committedLanes; |
no test coverage detected
searching dependent graphs…