I’m fighting a bug related to applying transactions from external components. We’re using collab and rebasing edits on the client side.
The bug flairs up on the second call, when we perform the rebase step and try to re update the editor state:
const newEditorState = editorState.apply(tr)
Upon debugging, within updateState, an error is thrown at this line because the docView is null.
var updateDoc = this.redraw || !this.docView.matchesNode(state.doc, outerDeco, innerDeco);
The error message is:
Any idea what could be setting the docView to null?