cleanup (this doesn't work)

This commit is contained in:
Maze Winther
2025-07-16 14:37:08 +02:00
parent 527d588897
commit 8bc26539eb
11 changed files with 388 additions and 577 deletions
@@ -3,6 +3,7 @@
import { useEffect } from "react";
import { Loader2 } from "lucide-react";
import { useEditorStore } from "@/stores/editor-store";
import { useKeyboardShortcuts } from "@/hooks/use-keyboard-shortcuts";
interface EditorProviderProps {
children: React.ReactNode;
@@ -11,6 +12,11 @@ interface EditorProviderProps {
export function EditorProvider({ children }: EditorProviderProps) {
const { isInitializing, isPanelsReady, initializeApp } = useEditorStore();
useKeyboardShortcuts({
enabled: !isInitializing && isPanelsReady,
context: "editor",
});
useEffect(() => {
initializeApp();
}, [initializeApp]);