From af9b9fd0faa655e6ae36c6c78c1bcbbaec01cbf6 Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Mon, 2 Mar 2026 18:28:36 +0300 Subject: [PATCH] Replace store thunks with a late-binding proxy useEditorStore() now returns a Proxy that delegates to the current active store at access time. No more store() wrapper functions, try/catch guards, or passing stores through function parameters. --- src/components/PropertiesPanel.vue | 2 +- src/composables/use-chat.ts | 16 +----- src/composables/use-keyboard.ts | 78 ++++++++++++++---------------- src/composables/use-menu.ts | 27 +++++------ src/stores/editor.ts | 18 ++++--- src/views/EditorView.vue | 4 +- 6 files changed, 65 insertions(+), 80 deletions(-) diff --git a/src/components/PropertiesPanel.vue b/src/components/PropertiesPanel.vue index 4b5adabe1..a2353beff 100644 --- a/src/components/PropertiesPanel.vue +++ b/src/components/PropertiesPanel.vue @@ -9,7 +9,7 @@ import CodePanel from './CodePanel.vue' import DesignPanel from './DesignPanel.vue' const store = useEditorStore() -const { activeTab } = useAIChat(store) +const { activeTab } = useAIChat()