Closed ziga-hvalec closed 5 months ago
When using router i'm trying to pass params to the initial route
router is registered
registerSheet( 'test_router', RouterSheet, );
RouterSheet
<ActionSheet enableRouterBackNavigation routes={routes} initialRoute={'initial_route'} />
Routes
const routes: Route[] = [ { name: 'initial_route', component: InitialRouteComponent, }, { name: 'second_route', component: SecondRouteComponent, }, ];
i'm trying to navigate like so
SheetManager.show('test_router', { params: { test: 'test' } }
inside my initial route i'm trying to get the params
const params = useSheetRouteParams();
but this is always undefiend
I did also try navigating to second route and pass params like so
return router?.navigate( 'second_route', { test1: 'test1' }, );
which works as expected
When using router i'm trying to pass params to the initial route
router is registered
RouterSheet
Routes
i'm trying to navigate like so
inside my initial route i'm trying to get the params
but this is always undefiend
I did also try navigating to second route and pass params like so
which works as expected