After leaving a page idle for some extended period of time, navigation seems to stop working. Clicking any SPA link on the page triggers the loading bar which progresses indefinitely and never loads the page. A refresh resolves the issue immediately.
Yes
(Write your steps here:)
I thought it would navigate to the page I clicked.
It doesn't navigate to the page I clicked 😥
Can't share anything at present, but I believe I may have even witnessed this on https://v2.docusaurus.io
Hi,
Do you have an opensource site with link to source code and live version?
Idle for a while, how long was it last time it happened?
What is your production host?
Has the site been redeployed in the meantime?
I suspect this may be related to rebuilds during Idle time, and according to deployment setup, older files required to navigate may not be available anymore.
If this happens again, please don't refresh, but try to inspect console logs and network tab.
Could also be somehow related to this issue, as js output files seem to change too unnecessarily: https://github.com/facebook/docusaurus/issues/3383
This is a lot of excellent stuff to go on @slorber , thanks!
I don't have anything open source that I can share right now, but I will consider all of this feedback and see if I can't create a repro deployment or at least provide more info, here.
Idle time: not sure, I usually notice it in the morning after logging off of work the night before.
Prod host: AWS
Redeployed: possibly, but I can't confirm at present that this has happened every time I've witnessed this issue
Thanks!
In order to reduce staled issues, I am closing this issue, but feel free to open it again if needed.