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 forces window reload #212
Comments
I don't know how to deal with this problem. I don't know how it was caused. |
Can you, please, try to find what might be causing it? I believe it should be fixed. |
The problem did not reproduce on macOS. Maybe I need to find a windows test. |
That gif, that shows the issue, was taken on macOS. The issue do reproduce on macOS. |
@jaywcjlove, do you plan to try to find the cause of this issue? |
@rafaelguedes Well, yes, I will try to reproduce it when I have time. |
This may be caused by dependency on There is no problem in the production environment. It cannot be resolved at this time. |
The first time that the editor is loaded it's forcing a window reload.
This should be avoided since the reload will, as expected, creating various issues such as losing states.
Here is a sandbox displaying this issue.
https://codesandbox.io/s/create-next-app-example-forked-xm1jn
It's using two markdown editors for comparison purposes.
If you click in "Other editor" first, the app is not reloading and is working as expected; after this, if you click on "Uiwjs" the app will be reloaded and the console will log "APP WILL RELOAD" (triggered by
beforeunload
event).The text was updated successfully, but these errors were encountered: