diff --git a/packages/client/src/components/ClientApp.svelte b/packages/client/src/components/ClientApp.svelte
index 75061ac327..a7a972a435 100644
--- a/packages/client/src/components/ClientApp.svelte
+++ b/packages/client/src/components/ClientApp.svelte
@@ -3,7 +3,7 @@
import { setContext, onMount } from "svelte"
import Component from "./Component.svelte"
import SDK from "../sdk"
- import { createDataStore, routeStore, screenStore } from "../store"
+ import { createDataStore, initialise, screenStore } from "../store"
// Provide contexts
setContext("sdk", SDK)
@@ -14,13 +14,11 @@
// Load app config
onMount(async () => {
- await routeStore.actions.fetchRoutes()
- await screenStore.actions.fetchScreens()
+ await initialise()
loaded = true
})
{#if loaded && $screenStore.activeLayout}
-