MCPcopy Create free account
hub / github.com/reactjs/react-rails / useFiber

Function useFiber

lib/assets/react-source/development/react.js:17195–17202  ·  view source on GitHub ↗
(fiber, pendingProps)

Source from the content-addressed store, hash-verified

17193 }
17194
17195 function useFiber(fiber, pendingProps) {
17196 // We currently set sibling to null and index to 0 here because it is easy
17197 // to forget to do before returning it. E.g. for the single child case.
17198 var clone = createWorkInProgress(fiber, pendingProps);
17199 clone.index = 0;
17200 clone.sibling = null;
17201 return clone;
17202 }
17203
17204 function placeChild(newFiber, lastPlacedIndex, newIndex) {
17205 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