Skip to content

BrowserHistory does not save state across refreshes #525

@flumm

Description

@flumm

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

  1. save state with push_with_state
  2. reload the page, e.g. with the browser button or with history.go(0)
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions