MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / useFiber

Function useFiber

code/composition/public/app.js:9105–9112  ·  view source on GitHub ↗
(fiber, pendingProps, expirationTime)

Source from the content-addressed store, hash-verified

9103 }
9104
9105 function useFiber(fiber, pendingProps, expirationTime) {
9106 // We currently set sibling to null and index to 0 here because it is easy
9107 // to forget to do before returning it. E.g. for the single child case.
9108 var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
9109 clone.index = 0;
9110 clone.sibling = null;
9111 return clone;
9112 }
9113
9114 function placeChild(newFiber, lastPlacedIndex, newIndex) {
9115 newFiber.index = newIndex;

Callers 7

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

Calls 1

createWorkInProgressFunction · 0.70

Tested by

no test coverage detected