-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: abort scheduled processes on destruction #71
Conversation
This reverts commit 0039353.
This fix ( Are there some other problems with this PR request that prevents it from being merged? |
Shouldn't we also clear y-prosemirror/src/plugins/sync-plugin.js Line 114 in f593d68
Also how about using I would gladly make the changes, but I don't want to create a new PR that is essentially the same as this one. @dmonad Can you please check this issue? I'm using these fixed in our project, but I would be really glad if I could use the |
parent 984175f author Dov Alperin <dzalperin@gmail.com> 1635443219 -0400 committer Dov Alperin <dzalperin@gmail.com> 1640994693 -0500 Make y-prosemirror behave with subdocuments + throw some safety checks in to avoid common (in my testing) footguns Check for object nullness in equalAttrs As typeof null is object, equalAttrs falsely expects it to produce Object.keys thus crashing when comparing object against a null value. update lib0 1.0.11 (upstream) Linking to documentation for Awareness protocol. Some refactors Bump with bugfix Bump again Adopt yjs#71 h/t @hoebbelsB Revert "Adopt yjs#71 h/t @hoebbelsB" This reverts commit 0039353. Use our own protocols Who needs safety checks anyway? Revert some debugging changes in search of a known good state Experimental fix for the cursor jumping bug More hacks for subdocument bs revert parent 984175f author Dov Alperin <dzalperin@gmail.com> 1635443219 -0400 committer Dov Alperin <dzalperin@gmail.com> 1640994693 -0500 Make y-prosemirror behave with subdocuments + throw some safety checks in to avoid common (in my testing) footguns Check for object nullness in equalAttrs As typeof null is object, equalAttrs falsely expects it to produce Object.keys thus crashing when comparing object against a null value. update lib0 1.0.11 (upstream) Linking to documentation for Awareness protocol. Some refactors Bump with bugfix Bump again Adopt yjs#71 h/t @hoebbelsB Revert "Adopt yjs#71 h/t @hoebbelsB" This reverts commit 0039353. Use our own protocols Who needs safety checks anyway? Revert some debugging changes in search of a known good state Experimental fix for the cursor jumping bug More hacks for subdocument bs revert can pass undoManager to undo-plugin can pass undoManager to undo-plugin can pass undoManager to undo-plugin can pass undoManager to undo-plugin remove yarn.lock 1.0.14 Bump Respect stateField key everywhere actually Fix some places that ignored the statekey
parent 984175f author Dov Alperin <dzalperin@gmail.com> 1635443219 -0400 committer Dov Alperin <dzalperin@gmail.com> 1640994693 -0500 Make y-prosemirror behave with subdocuments + throw some safety checks in to avoid common (in my testing) footguns Check for object nullness in equalAttrs As typeof null is object, equalAttrs falsely expects it to produce Object.keys thus crashing when comparing object against a null value. update lib0 1.0.11 (upstream) Linking to documentation for Awareness protocol. Some refactors Bump with bugfix Bump again Adopt yjs#71 h/t @hoebbelsB Revert "Adopt yjs#71 h/t @hoebbelsB" This reverts commit 0039353. Use our own protocols Who needs safety checks anyway? Revert some debugging changes in search of a known good state Experimental fix for the cursor jumping bug More hacks for subdocument bs revert parent 984175f author Dov Alperin <dzalperin@gmail.com> 1635443219 -0400 committer Dov Alperin <dzalperin@gmail.com> 1640994693 -0500 Make y-prosemirror behave with subdocuments + throw some safety checks in to avoid common (in my testing) footguns Check for object nullness in equalAttrs As typeof null is object, equalAttrs falsely expects it to produce Object.keys thus crashing when comparing object against a null value. update lib0 1.0.11 (upstream) Linking to documentation for Awareness protocol. Some refactors Bump with bugfix Bump again Adopt yjs#71 h/t @hoebbelsB Revert "Adopt yjs#71 h/t @hoebbelsB" This reverts commit 0039353. Use our own protocols Who needs safety checks anyway? Revert some debugging changes in search of a known good state Experimental fix for the cursor jumping bug More hacks for subdocument bs revert can pass undoManager to undo-plugin can pass undoManager to undo-plugin can pass undoManager to undo-plugin can pass undoManager to undo-plugin remove yarn.lock 1.0.14 Bump Respect stateField key everywhere actually Fix some places that ignored the statekey
This seems like a clean bugfix~ not sure why it's sat for months. |
Thank you for the PR @hoebbelsB and sorry that it took so long. I went for a different approach that checks whether the binding is destroyed. I prefer not to clear timeouts because that leads to further issues in the future. @ValentaTomas I implemented your suggestion as well and switched from |
Thank you for your work! |
fixes #70