-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destroy editor in safe #4000
Destroy editor in safe #4000
Conversation
✅ Deploy Preview for tiptap-embed ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
The intention of this change is to organize the lifecycle of the To avoid the current issue with flushSync warning, the
Currently, in the implementation, the sequence is as follows when the
With the changes in this pull request, the sequence will be as follows, and the issue with flushSync warning will be resolved:
|
@bdbch Can you take a look? |
Hey reviewers... please have a look... This issue seems to be a little problematic when using tiptap and fixing this would really help! |
Please, take a look at this PR, because I did not found any workaround without it. This fix could solve the issue. |
Hey guys, is this still an issue in progress? I still have this issue appear for me on v2.0.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks. @svenadlung what are your thoughts? Mergeable?
* Destroy editor in safe * Use class component * Use createElement
Please describe your changes
Fix #3764
How did you accomplish your changes
There are two issues:
I solved those issues.
How have you tested your changes
I tested by changing
demos/src/Examples/CustomParagraph/React/index.jsx
below.Test code
How can we verify your changes
By running the above example code on the develop branch, you will see that the flushSync error appears, but it does not appear on this branch.
Remarks
[add any additional remarks here]
Checklist
Related issues
[add a link to the related issues here]