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

Method getSuspenseByID

packages/react-devtools-shared/src/devtools/store.js:622–630  ·  view source on GitHub ↗
(id: SuspenseNode['id'])

Source from the content-addressed store, hash-verified

620 }
621
622 getSuspenseByID(id: SuspenseNode['id']): SuspenseNode | null {
623 const suspense = this._idToSuspense.get(id);
624 if (suspense === undefined) {
625 console.warn(`No suspense found with id "${id}"`);
626 return null;
627 }
628
629 return suspense;
630 }
631
632 // Returns a tuple of [id, index]
633 getElementsWithErrorsAndWarnings(): ErrorAndWarningTuples {

Callers 7

getSuspenseLineageMethod · 0.95
printStoreFunction · 0.80
SuspenseBreadcrumbsFunction · 0.80
getDefaultRootIDFunction · 0.80
SuspenseRects.jsFile · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected