-
-
Notifications
You must be signed in to change notification settings - Fork 596
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Warning: Cannot update a component (to2
) while rendering a different component (Editor
). To locate the bad setState() call inside Editor
To Reproduce
I don't know the name, but adding [initialContent]
to useBlockNote
hook trigger the error
const editor: BlockNoteEditor = useBlockNote({
initialContent:
initialContent
? JSON.parse(initialContent) //as PartialBlock[]
: undefined,
...
}, [initialContent]);
Misc
- Node version: v20.10.0
- Package manager: pnpm
- Browser: Firefox
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working