소스 검색

remove unneeded code from simple router example

Adrian Wannenmacher 2 년 전
부모
커밋
41bcc1e1f8
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      packages/router/examples/simple.rs

+ 0 - 2
packages/router/examples/simple.rs

@@ -2,7 +2,6 @@
 
 use dioxus::prelude::*;
 use dioxus_router::prelude::*;
-use dioxus_router_core::history::MemoryHistory;
 
 fn main() {
     dioxus_desktop::launch(App);
@@ -12,7 +11,6 @@ fn App(cx: Scope) -> Element {
     use_router(
         &cx,
         &|| RouterConfiguration {
-            // history: Box::new(MemoryHistory::with_initial_path("/apple").unwrap()),
             ..Default::default()
         },
         &|| {