From 5d120b8c0f2e44842ffd3ffd3f101bcd365932e4 Mon Sep 17 00:00:00 2001 From: Jamie Pine <32987599+jamiepine@users.noreply.github.com> Date: Sun, 6 Mar 2022 21:14:06 -0800 Subject: [PATCH] make App.tsx declaration order sane --- apps/desktop/src/App.tsx | 50 ++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index aa2a9853c..51c710cf1 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -89,31 +89,6 @@ function Router() { ); } -export default function App() { - useCoreEvents(); - - useEffect(() => { - invoke('get_config').then((state) => useAppState.getState().update(state)); - invoke('get_mounts').then((locations) => - //@ts-expect-error - useLocationStore.getState().setLocations(locations) - ); - }, []); - - return ( - {}} - > - - - - - - ); -} - function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) { return (
{ // process.exit(); // }); + +export default function App() { + useCoreEvents(); + + useEffect(() => { + invoke('get_config').then((state) => useAppState.getState().update(state)); + invoke('get_mounts').then((locations) => + //@ts-expect-error + useLocationStore.getState().setLocations(locations) + ); + }, []); + + return ( + {}} + > + + + + + + ); +}