From 0cd66fd16c519daee31ccd02767a316a6a19eac4 Mon Sep 17 00:00:00 2001
From: Lukas <76838159+wolflu05@users.noreply.github.com>
Date: Thu, 30 Nov 2023 05:53:32 +0100
Subject: [PATCH] Fix reloading on viewport size change (#6005)
---
src/frontend/src/App.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx
index 8448509df2..c9b7e19def 100644
--- a/src/frontend/src/App.tsx
+++ b/src/frontend/src/App.tsx
@@ -25,15 +25,16 @@ function checkMobile() {
return false;
}
+const MobileAppView = Loadable(lazy(() => import('./views/MobileAppView')));
+const DesktopAppView = Loadable(lazy(() => import('./views/DesktopAppView')));
+
// Main App
export default function App() {
// Check if mobile
if (checkMobile()) {
- const MobileAppView = Loadable(lazy(() => import('./views/MobileAppView')));
return ;
}
// Main App component
- const DesktopAppView = Loadable(lazy(() => import('./views/DesktopAppView')));
return ;
}