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

Function updateTextNode

code/third-party/public/app.js:8242–8254  ·  view source on GitHub ↗
(returnFiber, current, textContent, expirationTime)

Source from the content-addressed store, hash-verified

8240 }
8241
8242 function updateTextNode(returnFiber, current, textContent, expirationTime) {
8243 if (current === null || current.tag !== HostText) {
8244 // Insert
8245 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
8246 created['return'] = returnFiber;
8247 return created;
8248 } else {
8249 // Update
8250 var existing = useFiber(current, textContent, expirationTime);
8251 existing['return'] = returnFiber;
8252 return existing;
8253 }
8254 }
8255
8256 function updateElement(returnFiber, current, element, expirationTime) {
8257 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