MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / updateFragment

Function updateFragment

code/new-context-api/public/app.js:8418–8430  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

8416 }
8417
8418 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
8419 if (current === null || current.tag !== Fragment) {
8420 // Insert
8421 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
8422 created['return'] = returnFiber;
8423 return created;
8424 } else {
8425 // Update
8426 var existing = useFiber(current, fragment, expirationTime);
8427 existing['return'] = returnFiber;
8428 return existing;
8429 }
8430 }
8431
8432 function createChild(returnFiber, newChild, expirationTime) {
8433 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