Răsfoiți Sursa

fix default web history provider

Evan Almloff 2 ani în urmă
părinte
comite
33f0e30369
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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>,
             failure_external_navigation: FailureExternalNavigation::<R>,
             history: {
             history: {
                 #[cfg(all(target_arch = "wasm32", feature = "web"))]
                 #[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")))]
                 #[cfg(not(all(target_arch = "wasm32", feature = "web")))]
                 let history = Box::<MemoryHistory<R>>::default();
                 let history = Box::<MemoryHistory<R>>::default();
                 history
                 history