1
0
Fork 0
mirror of synced 2024-06-14 08:24:48 +12:00

Merge pull request #8307 from Budibase/fix/stop-screen-store-double-updating-on-page-change

Stop Screen Store Double Updating on Screen Change
This commit is contained in:
Martin McKeaveney 2022-10-20 20:35:18 +01:00 committed by GitHub
commit 9aaeaee7f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

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