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

Function updateTextNode

code/higher-order-components/public/app.js:9003–9015  ·  view source on GitHub ↗
(returnFiber, current, textContent, expirationTime)

Source from the content-addressed store, hash-verified

9001 }
9002
9003 function updateTextNode(returnFiber, current, textContent, expirationTime) {
9004 if (current === null || current.tag !== HostText) {
9005 // Insert
9006 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
9007 created['return'] = returnFiber;
9008 return created;
9009 } else {
9010 // Update
9011 var existing = useFiber(current, textContent, expirationTime);
9012 existing['return'] = returnFiber;
9013 return existing;
9014 }
9015 }
9016
9017 function updateElement(returnFiber, current, element, expirationTime) {
9018 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