yjs / y-prosemirror

ProseMirror editor binding for Yjs
https://demos.yjs.dev/prosemirror/prosemirror.html
MIT License
355 stars 124 forks source link

Fix wrong timeout object #112

Closed KentoMoriwaki closed 2 years ago

KentoMoriwaki commented 2 years ago

I encountered an error TypeError: Cannot read property 'matchesNode' of null when using with react and HMR. (same as https://github.com/ueberdosis/tiptap/issues/1451)

I just found that y-prosemirror dispatches a transaction even after destroyed, and it's due to failed to clear timeout by wrong use of lib0/eventloop.

dmonad commented 2 years ago

Right, thank you!

Will publish a new release in a bit.