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

Function updateFragment

code/dependency-injection/public/app.js:9150–9162  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

9148 }
9149
9150 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
9151 if (current === null || current.tag !== Fragment) {
9152 // Insert
9153 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
9154 created['return'] = returnFiber;
9155 return created;
9156 } else {
9157 // Update
9158 var existing = useFiber(current, fragment, expirationTime);
9159 existing['return'] = returnFiber;
9160 return existing;
9161 }
9162 }
9163
9164 function createChild(returnFiber, newChild, expirationTime) {
9165 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