You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-reload on failed lazy route loading can only work once per session on Safari #3327
This issue is a follow-up of #3262. The 4th issue mentioned in this PR hasn't been solved yet.
Basically: the system to auto-reload the app on navigation if a lazy route file failed to load is based on the error message. This error message is used as a sessionStorage key to ensure that we don't enter a reload loop if the same file fails to load twice during the same user session.
However, Safari does not include the file name in the error message, only Chrome and Firefox do. So on Safari
user opens the app
on the server: we deploy a new version of the app, all files get new hashes
the user tries to navigate, fails to load the route file
we store the error message in sessionStorage and reload the page (so far, everything is OK)
on the server: we deploy another version of the app
the user tries to navigate again, fails to load the route file
the error message is the same as before, we already have it as a key in sessionStorage, we do not reload the page
Just open that link on any browser and you'll see the error message directly on the page. If you open it on Chrome or Firefox, the error message includes "blob:foobar" (which is the name of the import in this weird demo), but if you open it on Safari, there is nothing unique about the error message.
Expected behavior
A user on Safari should be able to have their session "survive" more than 1 deployment, like in other browsers.
Activity
fix(router-core): key the stale-chunk reload guard on the importer