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

Function placeSingleChild

bundle.js:7096–7098  ·  view source on GitHub ↗
(newFiber)

Source from the content-addressed store, hash-verified

7094newFiber.effectTag=Placement$3;return lastPlacedIndex;}else{// This item can stay in place.
7095return oldIndex;}}else{// This is an insertion.
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

Callers 1

reconcileChildFibersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected