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

Function updateFragment

code/controlled-uncontrolled/public/app.js:8381–8393  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

8379 }
8380
8381 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
8382 if (current === null || current.tag !== Fragment) {
8383 // Insert
8384 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
8385 created['return'] = returnFiber;
8386 return created;
8387 } else {
8388 // Update
8389 var existing = useFiber(current, fragment, expirationTime);
8390 existing['return'] = returnFiber;
8391 return existing;
8392 }
8393 }
8394
8395 function createChild(returnFiber, newChild, expirationTime) {
8396 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