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

Function updateFragment

code/one-direction-data-flow/public/app.js:8930–8942  ·  view source on GitHub ↗
(returnFiber, current, fragment, expirationTime, key)

Source from the content-addressed store, hash-verified

8928 }
8929
8930 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
8931 if (current === null || current.tag !== Fragment) {
8932 // Insert
8933 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
8934 created['return'] = returnFiber;
8935 return created;
8936 } else {
8937 // Update
8938 var existing = useFiber(current, fragment, expirationTime);
8939 existing['return'] = returnFiber;
8940 return existing;
8941 }
8942 }
8943
8944 function createChild(returnFiber, newChild, expirationTime) {
8945 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