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

Function updateTextNode

code/new-context-api/public/app.js:8370–8382  ·  view source on GitHub ↗
(returnFiber, current, textContent, expirationTime)

Source from the content-addressed store, hash-verified

8368 }
8369
8370 function updateTextNode(returnFiber, current, textContent, expirationTime) {
8371 if (current === null || current.tag !== HostText) {
8372 // Insert
8373 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
8374 created['return'] = returnFiber;
8375 return created;
8376 } else {
8377 // Update
8378 var existing = useFiber(current, textContent, expirationTime);
8379 existing['return'] = returnFiber;
8380 return existing;
8381 }
8382 }
8383
8384 function updateElement(returnFiber, current, element, expirationTime) {
8385 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