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

Function getCurrentStackInDEV

packages/react-server/src/ReactFlightServer.js:448–457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

446}
447
448function getCurrentStackInDEV(): string {
449 if (__DEV__) {
450 const owner: null | ReactComponentInfo = resolveOwner();
451 if (owner === null) {
452 return '';
453 }
454 return getOwnerStackByComponentInfoInDev(owner);
455 }
456 return '';
457}
458
459const ObjectPrototype = Object.prototype;
460

Callers

nothing calls this directly

Calls 2

resolveOwnerFunction · 0.90

Tested by

no test coverage detected