lazy loading

master
alex 2024-01-28 19:51:35 +01:00
parent f992526f85
commit 0f7ed023cb
1 changed files with 2 additions and 3 deletions

View File

@ -2,11 +2,10 @@ import { Navigate, Route, Routes } from "react-router-dom";
import { Constants, isDevelopmentEnv } from "../../utils"; import { Constants, isDevelopmentEnv } from "../../utils";
import { lazy } from "react"; import { lazy } from "react";
import { MySupsenseFallback } from "../MySupsenseFallback"; import { MySupsenseFallback } from "../MySupsenseFallback";
import Authentication, { import { AuthenticationMethod } from "../../Pages/Authentication";
AuthenticationMethod,
} from "../../Pages/Authentication";
// Lazy-loaded components // Lazy-loaded components
const Authentication = lazy(() => import("../../Pages/Authentication"));
const Dashboard = lazy(() => import("../../Pages/Dashboard")); const Dashboard = lazy(() => import("../../Pages/Dashboard"));
const PageNotFound = lazy(() => import("../../Pages/PageNotFound")); const PageNotFound = lazy(() => import("../../Pages/PageNotFound"));
const PageInDevelopment = lazy(() => import("../../Pages/PageInDevelopment")); const PageInDevelopment = lazy(() => import("../../Pages/PageInDevelopment"));