浏览代码

re export the dioxus router prelude

Evan Almloff 1 年之前
父节点
当前提交
13b6f3b9e7
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/dioxus/src/lib.rs

+ 2 - 1
packages/dioxus/src/lib.rs

@@ -25,7 +25,6 @@ pub use dioxus_html as html;
 pub use dioxus_core_macro as core_macro;
 
 pub mod prelude {
-
     #[cfg(feature = "launch")]
     pub use crate::launch::*;
 
@@ -60,6 +59,8 @@ pub mod prelude {
 
     #[cfg(feature = "router")]
     pub use dioxus_router;
+    #[cfg(feature = "router")]
+    pub use dioxus_router::prelude::*;
 }
 
 #[cfg(feature = "web")]