Parcourir la source

fix default web history provider

Evan Almloff il y a 2 ans
Parent
commit
33f0e30369
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/router/src/router_cfg.rs

+ 1 - 1
packages/router/src/router_cfg.rs

@@ -39,7 +39,7 @@ where
             failure_external_navigation: FailureExternalNavigation::<R>,
             history: {
                 #[cfg(all(target_arch = "wasm32", feature = "web"))]
-                let history = Box::<MemoryHistory<R>>::default();
+                let history = Box::<WebHistory<R>>::default();
                 #[cfg(not(all(target_arch = "wasm32", feature = "web")))]
                 let history = Box::<MemoryHistory<R>>::default();
                 history