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

Function getHostSibling

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

Source from the content-addressed store, hash-verified

11150 );
11151}
11152function getHostSibling(fiber) {
11153 a: for (;;) {
11154 for (; null === fiber.sibling; ) {
11155 if (null === fiber.return || isHostParent(fiber.return)) return null;
11156 fiber = fiber.return;
11157 }
11158 fiber.sibling.return = fiber.return;
11159 for (
11160 fiber = fiber.sibling;
11161 5 !== fiber.tag &&
11162 6 !== fiber.tag &&
11163 27 !== fiber.tag &&
11164 18 !== fiber.tag;
11165
11166 ) {
11167 if (fiber.flags & 2) continue a;
11168 if (null === fiber.child || 4 === fiber.tag) continue a;
11169 else (fiber.child.return = fiber), (fiber = fiber.child);
11170 }
11171 if (!(fiber.flags & 2)) return fiber.stateNode;
11172 }
11173}
11174function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
11175 var tag = node.tag;
11176 if (5 === tag || 6 === tag)

Callers 2

commitPlacementFunction · 0.85

Calls 1

isHostParentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…