MCPcopy Create free account
hub / github.com/plotly/dash / updateTextNode

Function updateTextNode

dash/deps/react-dom@18.3.1.js:13264–13276  ·  view source on GitHub ↗
(returnFiber, current, textContent, lanes)

Source from the content-addressed store, hash-verified

13262 }
13263
13264 function updateTextNode(returnFiber, current, textContent, lanes) {
13265 if (current === null || current.tag !== HostText) {
13266 // Insert
13267 var created = createFiberFromText(textContent, returnFiber.mode, lanes);
13268 created.return = returnFiber;
13269 return created;
13270 } else {
13271 // Update
13272 var existing = useFiber(current, textContent);
13273 existing.return = returnFiber;
13274 return existing;
13275 }
13276 }
13277
13278 function updateElement(returnFiber, current, element, lanes) {
13279 var elementType = element.type;

Callers 2

updateSlotFunction · 0.70
updateFromMapFunction · 0.70

Calls 2

createFiberFromTextFunction · 0.70
useFiberFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…