MCPcopy Index your code
hub / github.com/react/react / setCurrentOwner

Function setCurrentOwner

packages/react-server/src/flight/ReactFlightCurrentOwner.js:19–21  ·  view source on GitHub ↗
(componentInfo: null | ReactComponentInfo)

Source from the content-addressed store, hash-verified

17let currentOwner: ReactComponentInfo | null = null;
18
19export function setCurrentOwner(componentInfo: null | ReactComponentInfo) {
20 currentOwner = componentInfo;
21}
22
23export function resolveOwner(): null | ReactComponentInfo {
24 if (currentOwner) return currentOwner;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected