MCPcopy Create free account
hub / github.com/microsoft/SandDance / updateFragment

Function updateFragment

docs/external/js/react-dom.development.js:13735–13747  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

13733 }
13734
13735 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
13736 if (current === null || current.tag !== Fragment) {
13737 // Insert
13738 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
13739 created.return = returnFiber;
13740 return created;
13741 } else {
13742 // Update
13743 var existing = useFiber(current, fragment);
13744 existing.return = returnFiber;
13745 return existing;
13746 }
13747 }
13748
13749 function createChild(returnFiber, newChild, expirationTime) {
13750 if (typeof newChild === 'string' || typeof newChild === 'number') {

Callers 3

updateSlotFunction · 0.85
updateFromMapFunction · 0.85
beginWorkFunction · 0.85

Calls 3

createFiberFromFragmentFunction · 0.85
useFiberFunction · 0.85
reconcileChildrenFunction · 0.85

Tested by

no test coverage detected