Skip to content

Multiple BlockNote mounted editors cause flushSync errors #1618

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

Open
1 task done
RobinClowers opened this issue Apr 18, 2025 · 0 comments
Open
1 task done

Multiple BlockNote mounted editors cause flushSync errors #1618

RobinClowers opened this issue Apr 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@RobinClowers
Copy link

RobinClowers commented Apr 18, 2025

Describe the bug
When multiple editors are mounted at once, they throw flushSync errors.

flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.

Similar to #1513.

To Reproduce
@edwandr helpfully created this minimal example that shows the issue. Load the page and then check the browser console.

Misc

  • Node version: 22.13.0
  • Package manager: Bun 1.2.1
  • Browser: Firefox 137
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
@RobinClowers RobinClowers added the bug Something isn't working label Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant