MCPcopy Create free account
hub / github.com/microsoft/SandDance / useFiber

Function useFiber

docs/external/js/react-dom.development.js:13635–13642  ·  view source on GitHub ↗
(fiber, pendingProps)

Source from the content-addressed store, hash-verified

13633 }
13634
13635 function useFiber(fiber, pendingProps) {
13636 // We currently set sibling to null and index to 0 here because it is easy
13637 // to forget to do before returning it. E.g. for the single child case.
13638 var clone = createWorkInProgress(fiber, pendingProps);
13639 clone.index = 0;
13640 clone.sibling = null;
13641 return clone;
13642 }
13643
13644 function placeChild(newFiber, lastPlacedIndex, newIndex) {
13645 newFiber.index = newIndex;

Callers 7

updateTextNodeFunction · 0.85
updateElementFunction · 0.85
updatePortalFunction · 0.85
updateFragmentFunction · 0.85
reconcileSingleTextNodeFunction · 0.85
reconcileSingleElementFunction · 0.85
reconcileSinglePortalFunction · 0.85

Calls 1

createWorkInProgressFunction · 0.85

Tested by

no test coverage detected