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

Function resolveOwner

packages/react-server/src/flight/ReactFlightCurrentOwner.js:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23export function resolveOwner(): null | ReactComponentInfo {
24 if (currentOwner) return currentOwner;
25 if (supportsComponentStorage) {
26 const owner = componentStorage.getStore();
27 if (owner) return owner;
28 }
29 return null;
30}

Callers 3

wrapperMethodFunction · 0.90
getCurrentStackInDEVFunction · 0.90
initFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected