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

Function updateFragment

code/styling/public/app.js:9057–9069  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

9055 }
9056
9057 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
9058 if (current === null || current.tag !== Fragment) {
9059 // Insert
9060 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
9061 created['return'] = returnFiber;
9062 return created;
9063 } else {
9064 // Update
9065 var existing = useFiber(current, fragment, expirationTime);
9066 existing['return'] = returnFiber;
9067 return existing;
9068 }
9069 }
9070
9071 function createChild(returnFiber, newChild, expirationTime) {
9072 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