diff --git a/packages/router/src/contexts/router.rs b/packages/router/src/contexts/router.rs index b8bc8c235..65b9fd43f 100644 --- a/packages/router/src/contexts/router.rs +++ b/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 { inner: RouterContext, _marker: std::marker::PhantomData, diff --git a/packages/router/src/lib.rs b/packages/router/src/lib.rs index 02b421bfc..f7d529909 100644 --- a/packages/router/src/lib.rs +++ b/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;