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

Function updateFragment

code/composition/public/app.js:9195–9207  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

9193 }
9194
9195 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
9196 if (current === null || current.tag !== Fragment) {
9197 // Insert
9198 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
9199 created['return'] = returnFiber;
9200 return created;
9201 } else {
9202 // Update
9203 var existing = useFiber(current, fragment, expirationTime);
9204 existing['return'] = returnFiber;
9205 return existing;
9206 }
9207 }
9208
9209 function createChild(returnFiber, newChild, expirationTime) {
9210 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