From 35f5af7a0284f381704968a36e47b0b6cab290f1 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Fri, 1 Nov 2024 19:16:44 +0530 Subject: [PATCH 1/2] make DoctorLiveConnect lazy load --- src/routes.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes.tsx b/src/routes.tsx index ba34adf..7b0646b 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,5 +1,7 @@ import { AppRoutes } from "@core/Routers/AppRouter"; -import DoctorLiveConnect from "./components/DoctorLiveConnect"; +import { lazy } from "react"; + +const DoctorLiveConnect = lazy(() => import("./components/DoctorLiveConnect")); const routes: AppRoutes = { "/live_connect/:username": ({ username }) => ( From 00b3559bc3753298ecb4d5a85f88427095a8d462 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Fri, 1 Nov 2024 19:18:08 +0530 Subject: [PATCH 2/2] reorder imports --- src/routes.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes.tsx b/src/routes.tsx index 7b0646b..29a9ba3 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,5 +1,5 @@ -import { AppRoutes } from "@core/Routers/AppRouter"; import { lazy } from "react"; +import { AppRoutes } from "@core/Routers/AppRouter"; const DoctorLiveConnect = lazy(() => import("./components/DoctorLiveConnect"));