Skip to content

Real-time collaboration causes an infinite stream of updates when focusing the editor on a standard Next.js app #471

@rodobre

Description

@rodobre

Describe the bug
When using a basic Next.js app, the real-time collaboration feature shown in the documentation causes an infinite stream of updates when focusing the editor, leading to constant flickering and re-renders.

To Reproduce
https://github.com/rodobre/blocknote-collaboration-issue

Misc

  • Node version: 18.0.0 to 21.4.0
  • Package manager: NPM
  • Browser: Google Chrome Version 119.0.6045.199 (Official Build) (arm64)
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Video:

https://cdn.discordapp.com/attachments/1015169282444894219/1182540721383821412/Screen_Recording_2023-12-08_at_05.31.10.mov?ex=658511de&is=65729cde&hm=5584f4d456219294547853f0f8fa4920f6df7120c0cb429ee0fb7e1212733eef&

Note:

This also happens on Webrtc with y-webrtc using the documentation code, the problem does not seem to be provider-related:

const provider = new WebrtcProvider("my-document-id", doc); // setup a yjs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions