You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
If I understand correctly, you put initialContent in the deps array to set the editor content whenever initialContent changes. However, you should instead use an effect hook to reset the editor content:
@matthewlipski i couldn't make to work with typescript : Argument of type 'string | undefined' is not assignable to parameter of type 'PartialBlock<BlockSchemaFromSpec...
Describe the bug
Warning: Cannot update a component (
to2
) while rendering a different component (Editor
). To locate the bad setState() call insideEditor
To Reproduce
I don't know the name, but adding
[initialContent]
touseBlockNote
hook trigger the errorMisc
The text was updated successfully, but these errors were encountered: