diff options
| author | 2026-03-26 09:06:56 +0800 | |
|---|---|---|
| committer | 2026-03-26 09:06:56 +0800 | |
| commit | 2412f7a3a626fc3b9e7b59ce1fc900468b792972 (patch) | |
| tree | 68b2ad2b56daa1ad040a4a0df0f7db509e16d53c /packages/ui/src/pages/index.tsx | |
| parent | 788715b1ca5ab5b67fcc2e69650b74e14c953a57 (diff) | |
| parent | 94b0d8e208363c802c12b56d8bdbef574dd1fb91 (diff) | |
| download | DropOut-2412f7a3a626fc3b9e7b59ce1fc900468b792972.tar.gz DropOut-2412f7a3a626fc3b9e7b59ce1fc900468b792972.zip | |
Merge branch 'main' into refactor/fe
Diffstat (limited to 'packages/ui/src/pages/index.tsx')
| -rw-r--r-- | packages/ui/src/pages/index.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/ui/src/pages/index.tsx b/packages/ui/src/pages/index.tsx index d12646b..bccca22 100644 --- a/packages/ui/src/pages/index.tsx +++ b/packages/ui/src/pages/index.tsx @@ -5,11 +5,13 @@ import { Sidebar } from "@/components/sidebar"; import { useAuthStore } from "@/models/auth"; import { useInstanceStore } from "@/models/instance"; import { useSettingsStore } from "@/models/settings"; +import { useGameStore } from "@/stores/game-store"; export function IndexPage() { const authStore = useAuthStore(); const settingsStore = useSettingsStore(); const instanceStore = useInstanceStore(); + const initGameLifecycle = useGameStore((state) => state.initLifecycle); const location = useLocation(); @@ -17,7 +19,10 @@ export function IndexPage() { authStore.init(); settingsStore.refresh(); instanceStore.refresh(); - }, [authStore.init, settingsStore.refresh, instanceStore.refresh]); + void initGameLifecycle().catch((error) => { + console.error("Failed to initialize game lifecycle:", error); + }); + }, [authStore.init, settingsStore.refresh, instanceStore.refresh, initGameLifecycle]); return ( <div className="relative h-screen w-full overflow-hidden bg-background font-sans"> |