Add missing await and batch some more API calls for speed
This commit is contained in:
parent
ff499d1461
commit
05e1dee992
|
@ -100,11 +100,13 @@ const resetBuilderHistory = () => {
|
||||||
|
|
||||||
export const initialise = async pkg => {
|
export const initialise = async pkg => {
|
||||||
const { application } = pkg
|
const { application } = pkg
|
||||||
appStore.syncAppPackage(pkg)
|
await Promise.all([
|
||||||
appStore.syncAppRoutes()
|
appStore.syncAppRoutes(),
|
||||||
|
componentStore.refreshDefinitions(application?.appId),
|
||||||
|
])
|
||||||
builderStore.init(application)
|
builderStore.init(application)
|
||||||
|
appStore.syncAppPackage(pkg)
|
||||||
navigationStore.syncAppNavigation(application?.navigation)
|
navigationStore.syncAppNavigation(application?.navigation)
|
||||||
await componentStore.refreshDefinitions(application?.appId)
|
|
||||||
themeStore.syncAppTheme(application)
|
themeStore.syncAppTheme(application)
|
||||||
screenStore.syncAppScreens(pkg)
|
screenStore.syncAppScreens(pkg)
|
||||||
layoutStore.syncAppLayouts(pkg)
|
layoutStore.syncAppLayouts(pkg)
|
||||||
|
|
Loading…
Reference in New Issue