building-react-from-scratch
building-react-from-scratch copied to clipboard
Is there something wrong with update method
in MultiChild.js file
case UPDATE_TYPES.MOVE: DOM.insertChildAfter( parentNode, parentNode.childNodes[fromIndex], update.afterNode, ); break;
move method depends on 'fromIndex' (which is previous componet's _mountindex),which should be changed once some component insert before
feels like that move method should rely on real DOM node, but not _mountindex