Skip to content
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

Editor reloads with state change in Next JS #422

Closed
dukesx opened this issue Aug 8, 2022 · 2 comments
Closed

Editor reloads with state change in Next JS #422

dukesx opened this issue Aug 8, 2022 · 2 comments

Comments

@dukesx
Copy link

dukesx commented Aug 8, 2022

I am using NextJS@latest i.e 12.2 with React 18 and above. I am loading it with next/dynamic but it seems that the moment i change the state (edit inside editor), the editor reloads itself (re-renders). This means that if i enter a letter, the cursor looses focus and i can only type ONE letter at a time.

Not sure what is going on but from what i know, this is a persistent issue with editors that are not compatible with SSR apis. If i use TinyMCE or any other, they seem to work flawlessly. Only way to make it work is through useRef since it does not cause re-render.

@jaywcjlove
Copy link
Member

@dukesx
Copy link
Author

dukesx commented Aug 10, 2022

Okay , it seems that issue was with my side. It just randomly started working correctly. I will close this issue.

@dukesx dukesx closed this as completed Aug 10, 2022
This was referenced Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants