From a9fd98c563f604617a63964c426ea7451706a58c Mon Sep 17 00:00:00 2001 From: Timo <16718859+toger5@users.noreply.github.com> Date: Wed, 20 May 2026 17:16:08 +0200 Subject: [PATCH] Update src/state/ViewModel.ts Co-authored-by: Robin --- src/state/ViewModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/ViewModel.ts b/src/state/ViewModel.ts index 9a0a5d2e..9d245b71 100644 --- a/src/state/ViewModel.ts +++ b/src/state/ViewModel.ts @@ -37,7 +37,7 @@ export function createStaticViewModel( export function useStaticViewModel( snapshot: Snapshot, ): ViewModel { - const [vm] = useState(createStaticViewModel(snapshot)); + const [vm] = useState(() => createStaticViewModel(snapshot)); useEffect(() => { for (const key in snapshot) { (vm as unknown as Record>)[