MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / useFiber

Function useFiber

code/styling/public/app.js:8967–8974  ·  view source on GitHub ↗
(fiber, pendingProps, expirationTime)

Source from the content-addressed store, hash-verified

8965 }
8966
8967 function useFiber(fiber, pendingProps, expirationTime) {
8968 // We currently set sibling to null and index to 0 here because it is easy
8969 // to forget to do before returning it. E.g. for the single child case.
8970 var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
8971 clone.index = 0;
8972 clone.sibling = null;
8973 return clone;
8974 }
8975
8976 function placeChild(newFiber, lastPlacedIndex, newIndex) {
8977 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