MCPcopy Create free account
hub / github.com/microsoft/SandDance / updateTextNode

Function updateTextNode

docs/external/js/react-dom.development.js:13682–13694  ·  view source on GitHub ↗
(returnFiber, current, textContent, expirationTime)

Source from the content-addressed store, hash-verified

13680 }
13681
13682 function updateTextNode(returnFiber, current, textContent, expirationTime) {
13683 if (current === null || current.tag !== HostText) {
13684 // Insert
13685 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
13686 created.return = returnFiber;
13687 return created;
13688 } else {
13689 // Update
13690 var existing = useFiber(current, textContent);
13691 existing.return = returnFiber;
13692 return existing;
13693 }
13694 }
13695
13696 function updateElement(returnFiber, current, element, expirationTime) {
13697 if (current !== null) {

Callers 2

updateSlotFunction · 0.85
updateFromMapFunction · 0.85

Calls 2

createFiberFromTextFunction · 0.85
useFiberFunction · 0.85

Tested by

no test coverage detected