ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
26.46k stars 2.22k forks source link

[Bug]: Collaboration Cursor Flicker #4993

Open amnesca opened 5 months ago

amnesca commented 5 months ago

Which packages did you experience the bug in?

@tiptap/extension-collaboration-cursor

What Tiptap version are you using?

2.2.4

What’s the bug you are facing?

I installed tiptap using Laravel Livewire instructions and set up a temporary server using - npx @hocuspocus/cli --port 1234 --sqlite. Regardless of the browser I'm using the collaboration cursors flicker like crazy (see below).

glitch

What browser are you using?

Firefox

Code example

https://github.com/amnesca/tiptap-collaboration-cursor.git

What did you expect to happen?

I expect the cursors not to flicker.

Anything to add? (optional)

No response

Did you update your dependencies?

Are you sponsoring us?

RenovationIGuess commented 5 months ago

I'm facing the same issues and don't know how to resolve @@. I tried their template using next but it has no problem @@.

nperez0111 commented 3 weeks ago

I've found that this happens when the plugin is instantiated twice & not destroyed. The cursor flickers sending awareness updates back & forth between the editor instance that is active & the editor instance that is created but not destroyed in the background.

I believe that their might be an issue where the editor instance is not being destroyed, but I don't fully understand the livewire integration.