Skip to content

Add initial version of hash history #4311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 24, 2025

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
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