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

Function updateFragment

code/redux/public/app.js:9308–9320  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

9306 }
9307
9308 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
9309 if (current === null || current.tag !== Fragment) {
9310 // Insert
9311 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
9312 created['return'] = returnFiber;
9313 return created;
9314 } else {
9315 // Update
9316 var existing = useFiber(current, fragment, expirationTime);
9317 existing['return'] = returnFiber;
9318 return existing;
9319 }
9320 }
9321
9322 function createChild(returnFiber, newChild, expirationTime) {
9323 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