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

Function getHostContext

packages/react-reconciler/src/ReactFiberHostContext.js:87–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87function getHostContext(): HostContext {
88 const context = requiredContext(contextStackCursor.current);
89 return context;
90}
91
92function pushHostContext(fiber: Fiber): void {
93 const stateHook: Hook | null = fiber.memoizedState;

Callers 7

claimHydratableSingletonFunction · 0.90
updateHostComponentFunction · 0.90
updateHostTextFunction · 0.90
completeWorkFunction · 0.90

Calls 1

requiredContextFunction · 0.85

Tested by

no test coverage detected