From @S6066 at mattermost/platform#7242
Summary
Sometimes I have a DNS error, or a Network Changed one, and I have to reload (Ctrl + R) the page.
When doing that, after some seconds the page becomes blank one second and reload again
Steps to reproduce
Ctrl+R.Expected behavior
The reloading should happen only once.
Observed behavior
The page reloads twice.
Possible fixes
?
@S6066 Please let me confirm. The application should automatically reload the page when the app has become online from offline. Do you need to press Ctrl+R when you meet DNS or Network Changed error?
@yuya-oc I do not need to press Ctrl+R, but I don't like waiting so I usually press it.
Operating System: Windows 10 x64 (16xx, probably 1607)
To reproduce the issue, Exit mattermost if opened, disable wifi, start Mattermost, enable wifi, press Ctrl+R
Edit: When waiting instead of pressing Ctrl+R, the bug doesn't occur
The problem reproduced for me on Windows 10. The error is ERR_NAME_NOT_RESOLVED (-105). When the error is ERR_INTERNET_DISCONNECTED (-106), the app properly reloads the page automatically.
The app automatically reloads the page every 30 seconds as another mechanism to repair the error. So I feel it's wrongly working when the page is manually reloaded.
The app automatically reloads the page every 30 seconds as another mechanism to repair the error.
@yuya-oc Do you mean the error clears after 30 seconds, or that it should clear but for some reason it doesn't.
@jasonblais Yes, if the error is gone in that time, the user will see correct reloaded webapp. However I think the automatic reloading is not canceled when the page is manually reloaded. So the page reloads again after Ctrl+R is done.
Okay cool. Do you have an idea on how much work it is to fix? Wondering if we should fix it in 3.8
It looks easy. I will test my fix tomorrow.
Most helpful comment
It looks easy. I will test my fix tomorrow.