1
0
Fork 0
mirror of synced 2024-06-13 16:05:06 +12:00

Stop Screen Store Double Updating on Screen Change

This commit is contained in:
Gerard Burns 2022-10-18 10:10:46 +01:00
parent 0d0c1fd91b
commit ead76f6ace
2 changed files with 1 additions and 3 deletions

View file

@ -43,6 +43,7 @@
}
const onRouteLoading = ({ detail }) => {
routeStore.actions.setRouteParams(detail.params || {})
routeStore.actions.setActiveRoute(detail.route)
}

View file

@ -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