( current, workInProgress, renderLanes, forcePropagateEntireTree )
| 10652 | } |
| 10653 | } |
| 10654 | function propagateParentContextChanges( |
| 10655 | current, |
| 10656 | workInProgress, |
| 10657 | renderLanes, |
| 10658 | forcePropagateEntireTree |
| 10659 | ) { |
| 10660 | current = null; |
| 10661 | for ( |
| 10662 | var parent = workInProgress, isInsidePropagationBailout = !1; |
| 10663 | null !== parent; |
| 10664 | |
| 10665 | ) { |
| 10666 | if (!isInsidePropagationBailout) |
| 10667 | if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0; |
| 10668 | else if (0 !== (parent.flags & 262144)) break; |
| 10669 | if (10 === parent.tag) { |
| 10670 | var currentParent = parent.alternate; |
| 10671 | if (null === currentParent) throw Error(formatProdErrorMessage(387)); |
| 10672 | currentParent = currentParent.memoizedProps; |
| 10673 | if (null !== currentParent) { |
| 10674 | var context = parent.type; |
| 10675 | objectIs(parent.pendingProps.value, currentParent.value) || |
| 10676 | (null !== current ? current.push(context) : (current = [context])); |
| 10677 | } |
| 10678 | } else if (parent === hostTransitionProviderCursor.current) { |
| 10679 | currentParent = parent.alternate; |
| 10680 | if (null === currentParent) throw Error(formatProdErrorMessage(387)); |
| 10681 | currentParent.memoizedState.memoizedState !== |
| 10682 | parent.memoizedState.memoizedState && |
| 10683 | (null !== current |
| 10684 | ? current.push(HostTransitionContext) |
| 10685 | : (current = [HostTransitionContext])); |
| 10686 | } |
| 10687 | parent = parent.return; |
| 10688 | } |
| 10689 | null !== current && |
| 10690 | propagateContextChanges( |
| 10691 | workInProgress, |
| 10692 | current, |
| 10693 | renderLanes, |
| 10694 | forcePropagateEntireTree |
| 10695 | ); |
| 10696 | workInProgress.flags |= 262144; |
| 10697 | } |
| 10698 | function checkIfContextChanged(currentDependencies) { |
| 10699 | for ( |
| 10700 | currentDependencies = currentDependencies.firstContext; |
no test coverage detected
searching dependent graphs…