MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / getHostContext

Function getHostContext

bundle.js:7617–7617  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7615push$2(rootInstanceStackCursor,nextRootInstance,fiber);var nextRootContext=getRootHostContext(nextRootInstance);// Track the context and the Fiber that provided it.
7616// This enables us to pop only Fibers that provide unique contexts.
7617push$2(contextFiberStackCursor,fiber,fiber);push$2(contextStackCursor,nextRootContext,fiber);}function popHostContainer(fiber){pop$2(contextStackCursor,fiber);pop$2(contextFiberStackCursor,fiber);pop$2(rootInstanceStackCursor,fiber);}function getHostContext(){var context=requiredContext(contextStackCursor.current);return context;}function pushHostContext(fiber){var rootInstance=requiredContext(rootInstanceStackCursor.current);var context=requiredContext(contextStackCursor.current);var nextContext=getChildHostContext(context,fiber.type,rootInstance);// Don't push this Fiber's context unless it's unique.
7618if(context===nextContext){return;}// Track the context and the Fiber that provided it.
7619// This enables us to pop only Fibers that provide unique contexts.
7620push$2(contextFiberStackCursor,fiber,fiber);push$2(contextStackCursor,nextContext,fiber);}function popHostContext(fiber){// Do not pop unless this Fiber provided the current context.

Callers 1

completeWorkFunction · 0.85

Calls 1

requiredContextFunction · 0.85

Tested by

no test coverage detected