revert: don't lazy load the entire application

This commit is contained in:
Dorian Niemiec 2024-11-03 12:07:20 +01:00
parent 64bb4a0f05
commit 3395427f55

View file

@ -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 />}>