Преглед изворни кода

fix default web history provider

Evan Almloff пре 2 година
родитељ
комит
33f0e30369
1 измењених фајлова са 1 додато и 1 уклоњено
  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