From d5932605b7a8bcdcdd203907303c7af1f58f1511 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 15 Feb 2024 15:49:12 +0000 Subject: [PATCH] Fixing an issue where app routing information was requested before the app store was fully brought online, meaning that routing information wasn't always successfully retrieved. --- packages/builder/src/stores/builder/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/stores/builder/index.js b/packages/builder/src/stores/builder/index.js index 36af7e7435..bac9fb8826 100644 --- a/packages/builder/src/stores/builder/index.js +++ b/packages/builder/src/stores/builder/index.js @@ -92,12 +92,13 @@ const resetBuilderHistory = () => { export const initialise = async pkg => { const { application } = pkg + // must be first operation to make sure subsequent requests have correct app ID + appStore.syncAppPackage(pkg) await Promise.all([ appStore.syncAppRoutes(), componentStore.refreshDefinitions(application?.appId), ]) builderStore.init(application) - appStore.syncAppPackage(pkg) navigationStore.syncAppNavigation(application?.navigation) themeStore.syncAppTheme(application) screenStore.syncAppScreens(pkg)