MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / updateTextNode

Function updateTextNode

bundle.js:7098–7100  ·  view source on GitHub ↗
(returnFiber,current,textContent,priority)

Source from the content-addressed store, hash-verified

7096newFiber.effectTag=Placement$3;return lastPlacedIndex;}}function placeSingleChild(newFiber){// This is simpler for the single child case. We only need to do a
7097// placement for inserting new children.
7098if(shouldTrackSideEffects&&newFiber.alternate===null){newFiber.effectTag=Placement$3;}return newFiber;}function updateTextNode(returnFiber,current,textContent,priority){if(current===null||current.tag!==HostText$5){// Insert
7099var created=createFiberFromText$1(textContent,returnFiber.internalContextTag,priority);created['return']=returnFiber;return created;}else{// Update
7100var existing=useFiber(current,priority);existing.pendingProps=textContent;existing['return']=returnFiber;return existing;}}function updateElement(returnFiber,current,element,priority){if(current===null||current.type!==element.type){// Insert
7101var created=createFiberFromElement$1(element,returnFiber.internalContextTag,priority);created.ref=coerceRef(current,element);created['return']=returnFiber;return created;}else{// Move based on index
7102var existing=useFiber(current,priority);existing.ref=coerceRef(current,element);existing.pendingProps=element.props;existing['return']=returnFiber;{existing._debugSource=element._source;existing._debugOwner=element._owner;}return existing;}}function updateCoroutine(returnFiber,current,coroutine,priority){// TODO: Should this also compare handler to determine whether to reuse?
7103if(current===null||current.tag!==CoroutineComponent$2){// Insert

Callers 2

updateSlotFunction · 0.85
updateFromMapFunction · 0.85

Calls 1

useFiberFunction · 0.85

Tested by

no test coverage detected