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

Function mapRemainingChildren

docs/index.js:6280–6287  ·  view source on GitHub ↗
(currentFirstChild)

Source from the content-addressed store, hash-verified

6278 return null;
6279 }
6280 function mapRemainingChildren(currentFirstChild) {
6281 for (var existingChildren = new Map(); null !== currentFirstChild; )
6282 null !== currentFirstChild.key
6283 ? existingChildren.set(currentFirstChild.key, currentFirstChild)
6284 : existingChildren.set(currentFirstChild.index, currentFirstChild),
6285 (currentFirstChild = currentFirstChild.sibling);
6286 return existingChildren;
6287 }
6288 function useFiber(fiber, pendingProps) {
6289 fiber = createWorkInProgress(fiber, pendingProps);
6290 fiber.index = 0;

Callers 2

reconcileChildrenArrayFunction · 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…