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

Function updateFragment

code/third-party/public/app.js:8290–8302  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

8288 }
8289
8290 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
8291 if (current === null || current.tag !== Fragment) {
8292 // Insert
8293 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
8294 created['return'] = returnFiber;
8295 return created;
8296 } else {
8297 // Update
8298 var existing = useFiber(current, fragment, expirationTime);
8299 existing['return'] = returnFiber;
8300 return existing;
8301 }
8302 }
8303
8304 function createChild(returnFiber, newChild, expirationTime) {
8305 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