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

Function updateTextNode

code/styling/public/app.js:9009–9021  ·  view source on GitHub ↗
(returnFiber, current, textContent, expirationTime)

Source from the content-addressed store, hash-verified

9007 }
9008
9009 function updateTextNode(returnFiber, current, textContent, expirationTime) {
9010 if (current === null || current.tag !== HostText) {
9011 // Insert
9012 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
9013 created['return'] = returnFiber;
9014 return created;
9015 } else {
9016 // Update
9017 var existing = useFiber(current, textContent, expirationTime);
9018 existing['return'] = returnFiber;
9019 return existing;
9020 }
9021 }
9022
9023 function updateElement(returnFiber, current, element, expirationTime) {
9024 if (current !== null && current.type === element.type) {

Callers 2

updateSlotFunction · 0.70
updateFromMapFunction · 0.70

Calls 2

createFiberFromTextFunction · 0.70
useFiberFunction · 0.70

Tested by

no test coverage detected