# Updating NodeViews on node moved

**URL:** <https://discuss.prosemirror.net/t/updating-nodeviews-on-node-moved/1866>\
**Category:** Uncategorized\
**Created:** [April 5, 2019, 11:32am UTC](https://discuss.prosemirror.net/t/updating-nodeviews-on-node-moved/1866 "2019-04-05T11:32:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![michaeldfallen](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/michaeldfallen/32/861_2.png) [@michaeldfallen](https://discuss.prosemirror.net/u/michaeldfallen)\
**Post date:** [April 5, 2019, 2:30pm UTC](https://discuss.prosemirror.net/t/updating-nodeviews-on-node-moved/1866/7 "2019-04-05T14:30:40Z")

</div>

Ok, the order does matter. Switching the order on the moveUp means I replace the wrong content (text in the paragraph node above) instead of the nodeView.

The moveDown works because the nodeView is destroyed and recreated. I would need to calculate the new position after the insert of the copy nodeView in order to properly delete the original nodeView.

---

_[View the full topic](https://discuss.prosemirror.net/t/updating-nodeviews-on-node-moved/1866)._
