Describe the Bug
When using BrowserHistory any state pushed with push_with_state or replace_with_state etc. is not retrievable across reloads.
Steps to Reproduce
- save state with
push_with_state
- reload the page, e.g. with the browser button or with
history.go(0)
- notice that the state saved earlier is not available anymore
Expected Behavior
the state is saved in the browser history
Actual Behavior
only a reference to a local (in memory) state is saved in the history
Additional Context
Of course i can implement my own struct that implements the History trait, but that kind of defeats the purpose of exposing the browser history in the crate IMO
Describe the Bug
When using
BrowserHistoryany state pushed withpush_with_stateorreplace_with_stateetc. is not retrievable across reloads.Steps to Reproduce
push_with_statehistory.go(0)Expected Behavior
the state is saved in the browser history
Actual Behavior
only a reference to a local (in memory) state is saved in the history
Additional Context
Of course i can implement my own struct that implements the
Historytrait, but that kind of defeats the purpose of exposing the browser history in the crate IMO