Forráskód Böngészése

Make GenericRouterContext pub (#3812)

Jim 3 hónapja
szülő
commit
9967118784
2 módosított fájl, 2 hozzáadás és 1 törlés
  1. 1 0
      packages/router/src/contexts/router.rs
  2. 1 1
      packages/router/src/lib.rs

+ 1 - 0
packages/router/src/contexts/router.rs

@@ -309,6 +309,7 @@ impl RouterContext {
     }
 }
 
+/// This context is set to the RouterConfig on_update method
 pub struct GenericRouterContext<R> {
     inner: RouterContext,
     _marker: std::marker::PhantomData<R>,

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

@@ -39,7 +39,7 @@ mod contexts {
     pub(crate) mod router;
     pub use navigator::*;
     pub(crate) use router::*;
-    pub use router::{root_router, RouterContext};
+    pub use router::{root_router, GenericRouterContext, RouterContext};
 }
 
 mod router_cfg;