Skip to content

Conversation

@mohe2015
Copy link
Contributor

Fixes #348

Usage: Provide Rc::new(HashHistory::default()) as root context

@mohe2015 mohe2015 requested a review from a team as a code owner June 22, 2025 17:47
@jkelleyrtp
Copy link
Member

jkelleyrtp commented Jun 24, 2025

Thanks for the PR! Very much appreciated.

I added a playwright test and then cleaned up the history module which had become a little cluttered after its long evolution.

I also added a configuration entry so you can customize the history with the Config object.

    dioxus::LaunchBuilder::new()
        .with_cfg(dioxus::web::Config::new().history(Rc::new(HashHistory::new(false))))
        .launch(|| {
            rsx! {
                Router::<Route> {}
            }
        })

@jkelleyrtp jkelleyrtp merged commit 2be2333 into DioxusLabs:main Jun 24, 2025
19 checks passed
@mohe2015 mohe2015 deleted the feature/hash-history branch June 27, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Router: Hash support for the web

2 participants