MCPcopy Create free account
hub / github.com/reactjs/react-rails / updateFragment

Function updateFragment

lib/assets/react-source/development/react.js:17295–17307  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

17293 }
17294
17295 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
17296 if (current === null || current.tag !== Fragment) {
17297 // Insert
17298 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
17299 created.return = returnFiber;
17300 return created;
17301 } else {
17302 // Update
17303 var existing = useFiber(current, fragment);
17304 existing.return = returnFiber;
17305 return existing;
17306 }
17307 }
17308
17309 function createChild(returnFiber, newChild, expirationTime) {
17310 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