diff options
| author | Hyteq <DerpsDer.es@gmail.com> | 2025-06-24 08:10:11 +0300 |
|---|---|---|
| committer | Hyteq <DerpsDer.es@gmail.com> | 2025-06-24 08:10:11 +0300 |
| commit | dc35619017ed7fbaa5e83151ba99c143da8cf1f1 (patch) | |
| tree | b68c1323f1c3a1818520a75b13da832426ac9b93 /apps/web/src/components/editor-provider.tsx | |
| parent | 55c95cd5748a250b9afd48062811990a7106e7a6 (diff) | |
| download | opencut-dc35619017ed7fbaa5e83151ba99c143da8cf1f1.tar.gz | |
clean up and simplifying more logic
Diffstat (limited to 'apps/web/src/components/editor-provider.tsx')
| -rw-r--r-- | apps/web/src/components/editor-provider.tsx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/apps/web/src/components/editor-provider.tsx b/apps/web/src/components/editor-provider.tsx index ab55c7d7..38255956 100644 --- a/apps/web/src/components/editor-provider.tsx +++ b/apps/web/src/components/editor-provider.tsx @@ -3,7 +3,6 @@ import { useEffect } from "react";
import { Loader2 } from "lucide-react";
import { useEditorStore } from "@/stores/editor-store";
-import { usePanelStore } from "@/stores/panel-store";
interface EditorProviderProps {
children: React.ReactNode;
@@ -11,19 +10,10 @@ interface EditorProviderProps { export function EditorProvider({ children }: EditorProviderProps) {
const { isInitializing, isPanelsReady, initializeApp } = useEditorStore();
- const { setInitialized } = usePanelStore();
useEffect(() => {
- const initialize = async () => {
- // Initialize the app
- await initializeApp();
-
- // Initialize panel store for future resize events
- setInitialized();
- };
-
- initialize();
- }, [initializeApp, setInitialized]);
+ initializeApp();
+ }, [initializeApp]);
// Show loading screen while initializing
if (isInitializing || !isPanelsReady) {
|
