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

Function useFiber

code/third-party/public/app.js:8200–8207  ·  view source on GitHub ↗
(fiber, pendingProps, expirationTime)

Source from the content-addressed store, hash-verified

8198 }
8199
8200 function useFiber(fiber, pendingProps, expirationTime) {
8201 // We currently set sibling to null and index to 0 here because it is easy
8202 // to forget to do before returning it. E.g. for the single child case.
8203 var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
8204 clone.index = 0;
8205 clone.sibling = null;
8206 return clone;
8207 }
8208
8209 function placeChild(newFiber, lastPlacedIndex, newIndex) {
8210 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