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 useBlockNote currently throws an error when the given initialContent is not kosher.
Handling the error is cumbersome since effects can't be called conditionally. However, it seems like an ErrorBoundary HOC can be a workaround to suppress the error.
To Reproduce
Pass a non-json value to initialContent, e.g. initialContent: "abc".
This could come from corrupted saved data.
The text was updated successfully, but these errors were encountered:
Describe the bug
useBlockNote
currently throws an error when the giveninitialContent
is not kosher.Handling the error is cumbersome since effects can't be called conditionally. However, it seems like an
ErrorBoundary
HOC can be a workaround to suppress the error.To Reproduce
Pass a non-json value to
initialContent
, e.g.initialContent: "abc"
.This could come from corrupted saved data.
The text was updated successfully, but these errors were encountered: