diff --git a/packages/client/src/components/Router.svelte b/packages/client/src/components/Router.svelte index 49cbc3f821..551a564094 100644 --- a/packages/client/src/components/Router.svelte +++ b/packages/client/src/components/Router.svelte @@ -43,6 +43,7 @@ } const onRouteLoading = ({ detail }) => { + routeStore.actions.setRouteParams(detail.params || {}) routeStore.actions.setActiveRoute(detail.route) } diff --git a/packages/client/src/components/Screen.svelte b/packages/client/src/components/Screen.svelte index 0ce89f1ff4..f6f9a932f0 100644 --- a/packages/client/src/components/Screen.svelte +++ b/packages/client/src/components/Screen.svelte @@ -10,9 +10,6 @@ const context = getContext("context") - // Keep route params up to date - $: routeStore.actions.setRouteParams(params || {}) - // Get the screen definition for the current route $: screenDefinition = $screenStore.activeScreen?.props