1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Add missing await and batch some more API calls for speed

This commit is contained in:
Andrew Kingston 2024-02-05 11:49:43 +00:00
parent ff499d1461
commit 05e1dee992

View file

@ -100,11 +100,13 @@ const resetBuilderHistory = () => {
export const initialise = async pkg => {
const { application } = pkg
appStore.syncAppPackage(pkg)
appStore.syncAppRoutes()
await Promise.all([
appStore.syncAppRoutes(),
componentStore.refreshDefinitions(application?.appId),
])
builderStore.init(application)
appStore.syncAppPackage(pkg)
navigationStore.syncAppNavigation(application?.navigation)
await componentStore.refreshDefinitions(application?.appId)
themeStore.syncAppTheme(application)
screenStore.syncAppScreens(pkg)
layoutStore.syncAppLayouts(pkg)