1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00

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.

This commit is contained in:
mike12345567 2024-02-15 15:49:12 +00:00
parent a0317a4690
commit d5932605b7

View file

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