MCPcopy Index your code
hub / github.com/caseywebdev/react-list / getNearestMountedFiber

Function getNearestMountedFiber

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

Source from the content-addressed store, hash-verified

3818 }
3819}
3820function getNearestMountedFiber(fiber) {
3821 var node = fiber,
3822 nearestMounted = fiber;
3823 if (fiber.alternate) for (; node.return; ) node = node.return;
3824 else {
3825 fiber = node;
3826 do
3827 (node = fiber),
3828 0 !== (node.flags & 4098) && (nearestMounted = node.return),
3829 (fiber = node.return);
3830 while (fiber);
3831 }
3832 return 3 === node.tag ? nearestMounted : null;
3833}
3834function getSuspenseInstanceFromFiber(fiber) {
3835 if (13 === fiber.tag) {
3836 var suspenseState = fiber.memoizedState;

Callers 6

assertIsMountedFunction · 0.85
index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…