-
-
Notifications
You must be signed in to change notification settings - Fork 582
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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)
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 :
- flushSync gets called on render when the Editor gets updated with content that uses an extension with addNodeView ueberdosis/tiptap#3764 (comment)
- Error: flushSync was called from inside a lifecycle method in <PureEditorContent> ueberdosis/tiptap#3580 (comment)
To Reproduce
- Load this basic reproduction initiating a blocknote with a mention inside : https://stackblitz.com/edit/github-5zwbkwwx?file=App.tsx
- The error will appear in console
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
Labels
bugSomething isn't workingSomething isn't working