(subtreeRoot, root, committedLanes, committedTransitions)
| 24891 | } |
| 24892 | |
| 24893 | function commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) { |
| 24894 | while (nextEffect !== null) { |
| 24895 | var fiber = nextEffect; |
| 24896 | |
| 24897 | if ((fiber.flags & Passive) !== NoFlags) { |
| 24898 | setCurrentFiber(fiber); |
| 24899 | |
| 24900 | try { |
| 24901 | commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions); |
| 24902 | } catch (error) { |
| 24903 | captureCommitPhaseError(fiber, fiber.return, error); |
| 24904 | } |
| 24905 | |
| 24906 | resetCurrentFiber(); |
| 24907 | } |
| 24908 | |
| 24909 | if (fiber === subtreeRoot) { |
| 24910 | nextEffect = null; |
| 24911 | return; |
| 24912 | } |
| 24913 | |
| 24914 | var sibling = fiber.sibling; |
| 24915 | |
| 24916 | if (sibling !== null) { |
| 24917 | sibling.return = fiber.return; |
| 24918 | nextEffect = sibling; |
| 24919 | return; |
| 24920 | } |
| 24921 | |
| 24922 | nextEffect = fiber.return; |
| 24923 | } |
| 24924 | } |
| 24925 | |
| 24926 | function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) { |
| 24927 | switch (finishedWork.tag) { |
no test coverage detected
searching dependent graphs…