MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / updateTextNode

Function updateTextNode

code/composition/public/app.js:9147–9159  ·  view source on GitHub ↗
(returnFiber, current, textContent, expirationTime)

Source from the content-addressed store, hash-verified

9145 }
9146
9147 function updateTextNode(returnFiber, current, textContent, expirationTime) {
9148 if (current === null || current.tag !== HostText) {
9149 // Insert
9150 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
9151 created['return'] = returnFiber;
9152 return created;
9153 } else {
9154 // Update
9155 var existing = useFiber(current, textContent, expirationTime);
9156 existing['return'] = returnFiber;
9157 return existing;
9158 }
9159 }
9160
9161 function updateElement(returnFiber, current, element, expirationTime) {
9162 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