hydrostack / hydro

Hydro brings stateful and reactive components to ASP.NET Core without writing JavaScript

Home Page:https://usehydro.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add browser history snapshots

kjeske opened this issue · comments

Keep the cached DOM for browser history entries, so when user navigate back or next, the DOM is restored. Since the Hydro components state is kept on the page, their state will be restored as well automatically.

Issue is based on this discussion.

Things to think about

  • There might be situations where you want to clear the cache when you did changes to database and you don't want to restore previous state when going back, as it might be stale