respond-framework / rudy

Rudy Router - MVC style route async controller for react-redux applications.
MIT License
80 stars 8 forks source link

feat: restore fallback for broken sessionStorage #74

Closed hedgepigdaniel closed 4 years ago

hedgepigdaniel commented 4 years ago

The subset of the history of browser history stack entries within the current session is mirrored in sessionStorage so that it can be restored into Redux on page reload or on navigation from external history stack entries (using the borwser back/forward buttons, reload button, unfreezing, etc). There used to be a fallback for browsers where sessionStorage is not supported which instead stored the entries inside the current history state. This fallback was removed as part of https://github.com/respond-framework/rudy/pull/61. However, although all modern browsers officially support sessionStorage, there are various circumstances in which it fails to work:

This change restores that fallback. It comes with the same caveats that were there before: