From e2342538707faa7ce3acb63ffbe4a7ce70edfb8d Mon Sep 17 00:00:00 2001 From: SkateSpots Date: Fri, 30 Oct 2026 01:19:19 +0700 Subject: [PATCH] fix: eager-load the map and harden native boot cleanup --- src/AppRouter.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index bf4efa7..9c35736 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -7,9 +7,9 @@ import { DeepLinkHandler } from "./components/DeepLinkHandler"; import { RouteErrorBoundary } from "./components/RouteErrorBoundary"; import { Layout } from "./components/Layout"; -// The map is the homepage, but lazy-loading it keeps its chunk (plus the -// IndexedDB offline-cache layer) out of the initial entry bundle. -const MapPage = lazyWithRetry(() => import("./pages/MapPage")); +// MapPage is eager: it is the homepage and a lazy import here used to leave a +// blank Suspense fallback on slow native WebViews before the map appeared. +import MapPage from "./pages/MapPage"; // Lazy load everything else — each page becomes its own JS chunk const Index = lazyWithRetry(() => import("./pages/Index"));