# Nesting ProseMirror editor inside NodeView causes state changes on outer ProseMirror editor

**URL:** <https://discuss.prosemirror.net/t/nesting-prosemirror-editor-inside-nodeview-causes-state-changes-on-outer-prosemirror-editor/3880>\
**Category:** Uncategorized\
**Created:** [July 2, 2021, 12:04am UTC](https://discuss.prosemirror.net/t/nesting-prosemirror-editor-inside-nodeview-causes-state-changes-on-outer-prosemirror-editor/3880 "2021-07-02T00:04:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jess](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jess](https://discuss.prosemirror.net/u/jess)\
**Post date:** [July 2, 2021, 12:04am UTC](https://discuss.prosemirror.net/t/nesting-prosemirror-editor-inside-nodeview-causes-state-changes-on-outer-prosemirror-editor/3880/1 "2021-07-02T00:04:31Z")

</div>

Hello! We are trying to nest a ProseMirror editor (“NestedEditor”) inside a NodeView (within another ProseMirror editor, “OuterEditor”). This all works, except that when we type into the NestedEditor, it causes OuterEditor’s state to change. In particular, we notice OuterEditor’s selection changing while we make changes in NestedEditor. As a consequence, all of our NodeViews in OuterEditor are re-rendering on every key stroke. How do we stop this? Thank you!

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [July 2, 2021, 6:39am UTC](https://discuss.prosemirror.net/t/nesting-prosemirror-editor-inside-nodeview-causes-state-changes-on-outer-prosemirror-editor/3880/2 "2021-07-02T06:39:35Z")

</div>

I expect you need to define an [`ignoreMutation`](https://prosemirror.net/docs/ref/#view.NodeView.ignoreMutation) method on your node view, and make it ignore selection changes.
