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
My problem is that Delta doesn't exist when the initial value is set in the useState. I'd rather not instantiate it as undefined if I can avoid, typescript will make me treat it as if it can be undefined everywhere, but I'm not sure what the best work around would be.
Right now my work around which seems fine is just importing Delta like this:
import Delta from "quill-delta";
The text was updated successfully, but these errors were encountered:
Hey love the repo! This is a question, not sure how to tackle this problem using hooks and react-quilljs. I'd like this to work:
My problem is that Delta doesn't exist when the initial value is set in the useState. I'd rather not instantiate it as undefined if I can avoid, typescript will make me treat it as if it can be undefined everywhere, but I'm not sure what the best work around would be.
Right now my work around which seems fine is just importing Delta like this:
import Delta from "quill-delta";
The text was updated successfully, but these errors were encountered: