Skip to content

Using blocknote option initialContent creates a flushSync in console #1513

@edwandr

Description

@edwandr

Describe the bug
I'm trying to initiate a blocknote with initialContent that features a custom inline (a mention) content using useCreateBlockNote hook. When doing so, it works well but I get an error in console (see screenshot)

Image

It seems to be a tiptap issue that is not really fixed yet : ueberdosis/tiptap#3764

There are partial solutions using microtasks though found by community :

To Reproduce

Misc

  • Node version: 18.20.7
  • Package manager: yarn 4.3.0
  • Browser: Chrome 134.0.6998.45
  • @blocknote : 0.25.1
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

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