Editor forces window reload
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).
- This only happens the first time you open the editor after booting the app (I believe that in the following the page is prefetched);
- I'm not sure if this happens in production, but at least in development mode it's an issue;

I don't know how to deal with this problem. I don't know how it was caused.
@rafaelguedes
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 react-markdown.
There is no problem in the production environment.
It cannot be resolved at this time.
@rafaelguedes