MCPcopy Create free account
hub / github.com/caseywebdev/react-list / getSuspenseInstanceFromFiber

Function getSuspenseInstanceFromFiber

docs/index.js:3834–3843  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

3832 return 3 === node.tag ? nearestMounted : null;
3833}
3834function getSuspenseInstanceFromFiber(fiber) {
3835 if (13 === fiber.tag) {
3836 var suspenseState = fiber.memoizedState;
3837 null === suspenseState &&
3838 ((fiber = fiber.alternate),
3839 null !== fiber && (suspenseState = fiber.memoizedState));
3840 if (null !== suspenseState) return suspenseState.dehydrated;
3841 }
3842 return null;
3843}
3844function assertIsMounted(fiber) {
3845 if (getNearestMountedFiber(fiber) !== fiber)
3846 throw Error(formatProdErrorMessage(188));

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…