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 af895c6b82..9aefcdd835 100644 --- a/packages/client/src/components/Screen.svelte +++ b/packages/client/src/components/Screen.svelte @@ -9,9 +9,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