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

Function updateFragment

code/higher-order-components/public/app.js:9051–9063  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

9049 }
9050
9051 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
9052 if (current === null || current.tag !== Fragment) {
9053 // Insert
9054 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
9055 created['return'] = returnFiber;
9056 return created;
9057 } else {
9058 // Update
9059 var existing = useFiber(current, fragment, expirationTime);
9060 existing['return'] = returnFiber;
9061 return existing;
9062 }
9063 }
9064
9065 function createChild(returnFiber, newChild, expirationTime) {
9066 if (typeof newChild === 'string' || typeof newChild === 'number') {

Callers 3

updateSlotFunction · 0.70
updateFromMapFunction · 0.70
beginWorkFunction · 0.70

Calls 5

createFiberFromFragmentFunction · 0.70
useFiberFunction · 0.70
reconcileChildrenFunction · 0.70
memoizePropsFunction · 0.70

Tested by

no test coverage detected