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

Function updateFragment

code/communication/public/app.js:9092–9104  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

9090 }
9091
9092 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
9093 if (current === null || current.tag !== Fragment) {
9094 // Insert
9095 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
9096 created['return'] = returnFiber;
9097 return created;
9098 } else {
9099 // Update
9100 var existing = useFiber(current, fragment, expirationTime);
9101 existing['return'] = returnFiber;
9102 return existing;
9103 }
9104 }
9105
9106 function createChild(returnFiber, newChild, expirationTime) {
9107 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