You are currently viewing the docs for Dioxus 0.6.0 which is under construction.

History Providers

[ HistoryProvider]

The router provides two HistoryProvider]

  • The MemoryHistory]
  • The LiveviewHistory]
  • The WebHistory]

By default, the router uses the MemoryHistory]WebHistory]web feature is active, but that is not guaranteed.

You can override the default history:

src/history_provider.rs
#[component]
fn App() -> Element {
    rsx! {
        Router::<Route> { config: || RouterConfig::default() }
    }
}