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

Function useFiber

code/controlled-uncontrolled/public/app.js:8291–8298  ·  view source on GitHub ↗
(fiber, pendingProps, expirationTime)

Source from the content-addressed store, hash-verified

8289 }
8290
8291 function useFiber(fiber, pendingProps, expirationTime) {
8292 // We currently set sibling to null and index to 0 here because it is easy
8293 // to forget to do before returning it. E.g. for the single child case.
8294 var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
8295 clone.index = 0;
8296 clone.sibling = null;
8297 return clone;
8298 }
8299
8300 function placeChild(newFiber, lastPlacedIndex, newIndex) {
8301 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