-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Bug]: Tiptap CollaborationCursor flickering issue #4782
Comments
Are you using the strict mode on react? |
No |
In the build version of Next.js, the problem gets resolved, but there is a flickering issue when running in Next.js dev mode. |
👋 We're experiencing the same issue in react. I've recorded a loom here (sorry for my baby crying in the background 🙈): We're using the const doc = new Y.Doc();
const provider = new TiptapCollabProvider({
name: 'test-product-doc', // any identifier - all connections sharing the same identifier will be synced
appId: 'app-id', // replace with YOUR_APP_ID
token: 'TOKEN', // replace with your JWT
document: doc,
}); Do you have any idea what could be causing that? |
Hey @Bajena @bahadiraraz , can you review this comment and check if the suggested code works for you? |
Thanks @ThisDavidRichard, I just verified that it fixed the bug for us 👍 Btw, the double wrapping of |
Should be fixed in 2.2.2 :) |
Which packages did you experience the bug in?
@tiptap/extension-collaboration-cursor
What Tiptap version are you using?
^2.1.16
What’s the bug you are facing?
I'll use HocuspocusProvider, TiptapCollabProvider, and WebsocketProvider regardless, but the CollaborationCursor is flickering. In some browsers, it's less noticeable, but the problem still exists in all browsers.
What browser are you using?
Chrome
Code example
No response
What did you expect to happen?
There should be no flickering
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: