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

Function updateTextNode

code/communication/public/app.js:9044–9056  ·  view source on GitHub ↗
(returnFiber, current, textContent, expirationTime)

Source from the content-addressed store, hash-verified

9042 }
9043
9044 function updateTextNode(returnFiber, current, textContent, expirationTime) {
9045 if (current === null || current.tag !== HostText) {
9046 // Insert
9047 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
9048 created['return'] = returnFiber;
9049 return created;
9050 } else {
9051 // Update
9052 var existing = useFiber(current, textContent, expirationTime);
9053 existing['return'] = returnFiber;
9054 return existing;
9055 }
9056 }
9057
9058 function updateElement(returnFiber, current, element, expirationTime) {
9059 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