Potential bug when inserting a node with nodeView

Hi,

i defined a node type that has an associated nodeView. i’m inserting a new node B of that type before a node A of the same type.

Something weird is happening: nodeViewA.update(nodeB) is called, then a new nodeView with nodeA is created. Is this expected ? I expected only a new nodeView for nodeB to be created.

Ha that’s another prosemirror “gotcha”: nodeView.update is supposed to return false when the application can tell it’s not the right node passed as parameter.