1
0
Эх сурвалжийг харах

Make GenericRouterContext pub (#3812)

Jim 3 сар өмнө
parent
commit
9967118784

+ 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;