revert: don't lazy load the entire application
This commit is contained in:
parent
64bb4a0f05
commit
3395427f55
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
import { StrictMode, Suspense, lazy } from "react";
|
||||
import { StrictMode, Suspense } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import App from "./App.jsx";
|
||||
import Loading from "./layouts/Loading.jsx";
|
||||
import Error from "./layouts/Error.jsx";
|
||||
import { ThemeProvider } from "./contexts/ThemeContext.jsx";
|
||||
|
@ -11,9 +12,6 @@ import { Provider } from "react-redux";
|
|||
import { ErrorBoundary } from "react-error-boundary";
|
||||
import "./i18n.js";
|
||||
|
||||
// eslint-disable-next-line react-refresh/only-export-components
|
||||
const App = lazy(() => import("./App.jsx"));
|
||||
|
||||
createRoot(document.getElementById("root")).render(
|
||||
<StrictMode>
|
||||
<ErrorBoundary fallback={<Error />}>
|
||||
|
|
Loading…
Reference in a new issue