-
-
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
fix(react): reset initialized when editorcontent is unmounting #3781
Conversation
✅ Deploy Preview for tiptap-embed ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
I have tested this as well and it appears to work well.
I think this PR doesn't completely resolve this issue #3331 which is reproduced by #3533 Could you please consider an alternative approach that doesn't use |
I opened a PR about this. |
…dosis#3781) * fix(react): reset initialized when editorcontent is unmounting * style: remove unneeded if statement
…dosis#3781) * fix(react): reset initialized when editorcontent is unmounting * style: remove unneeded if statement
This PR should resolve the flushSync issues (see #3331, #3580, #3764) and pr #3533
From my local tests I didn't receive any error messages nor did my cursor stay in the old position after inserting a new React NodeView with an editor content.
closes #3331
closes #3580
closes #3764