MCPcopy
hub / github.com/facebook/react / pushHostRootContext

Function pushHostRootContext

packages/react-reconciler/src/ReactFiberBeginWork.js:1783–1796  ·  view source on GitHub ↗
(workInProgress: Fiber)

Source from the content-addressed store, hash-verified

1781}
1782
1783function pushHostRootContext(workInProgress: Fiber) {
1784 const root = (workInProgress.stateNode: FiberRoot);
1785 if (root.pendingContext) {
1786 pushTopLevelContextObject(
1787 workInProgress,
1788 root.pendingContext,
1789 root.pendingContext !== root.context,
1790 );
1791 } else if (root.context) {
1792 // Should always be set
1793 pushTopLevelContextObject(workInProgress, root.context, false);
1794 }
1795 pushHostContainer(workInProgress, root.containerInfo);
1796}
1797
1798function updateHostRoot(
1799 current: null | Fiber,

Callers 2

updateHostRootFunction · 0.85

Calls 2

pushHostContainerFunction · 0.90

Tested by

no test coverage detected