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

Method _guessSuspenseName

packages/react-devtools-shared/src/devtools/store.js:2080–2088  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

2078 }
2079
2080 _guessSuspenseName(element: Element): string {
2081 const owner = this._idToElement.get(element.ownerID);
2082 let name = 'Unknown';
2083 if (owner !== undefined && owner.displayName !== null) {
2084 name = owner.displayName;
2085 }
2086
2087 return name;
2088 }
2089}

Callers 1

StoreClass · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected