MCPcopy Index your code
hub / github.com/caseywebdev/react-list / pushHostContainer

Function pushHostContainer

docs/index.js:3953–3989  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

3951 rootInstanceStackCursor = createCursor(null),
3952 hostTransitionProviderCursor = createCursor(null);
3953function pushHostContainer(fiber, nextRootInstance) {
3954 push(rootInstanceStackCursor, nextRootInstance);
3955 push(contextFiberStackCursor, fiber);
3956 push(contextStackCursor, null);
3957 fiber = nextRootInstance.nodeType;
3958 switch (fiber) {
3959 case 9:
3960 case 11:
3961 nextRootInstance = (nextRootInstance = nextRootInstance.documentElement)
3962 ? (nextRootInstance = nextRootInstance.namespaceURI)
3963 ? getOwnHostContext(nextRootInstance)
3964 : 0
3965 : 0;
3966 break;
3967 default:
3968 if (
3969 ((fiber = 8 === fiber ? nextRootInstance.parentNode : nextRootInstance),
3970 (nextRootInstance = fiber.tagName),
3971 (fiber = fiber.namespaceURI))
3972 )
3973 (fiber = getOwnHostContext(fiber)),
3974 (nextRootInstance = getChildHostContextProd(fiber, nextRootInstance));
3975 else
3976 switch (nextRootInstance) {
3977 case "svg":
3978 nextRootInstance = 1;
3979 break;
3980 case "math":
3981 nextRootInstance = 2;
3982 break;
3983 default:
3984 nextRootInstance = 0;
3985 }
3986 }
3987 pop(contextStackCursor);
3988 push(contextStackCursor, nextRootInstance);
3989}
3990function popHostContainer() {
3991 pop(contextStackCursor);
3992 pop(contextFiberStackCursor);

Callers 2

beginWorkFunction · 0.85

Calls 5

pushFunction · 0.85
getOwnHostContextFunction · 0.85
getChildHostContextProdFunction · 0.85
popFunction · 0.85
updatedAncestorInfoDevFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…