Enable app-wide StrictMode and restore React effect checks
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
This commit is contained in:
parent
b0e340efc7
commit
a9b68a5712
5 changed files with 21 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// Rôle : point d'entrée React, assemble données, routes, shell et overlays.
|
||||
/* eslint-disable react-refresh/only-export-components -- point d'entrée Vite sans export de composant. */
|
||||
import { lazy, Suspense, useCallback, useEffect, useState } from "react";
|
||||
import { lazy, StrictMode, Suspense, useCallback, useEffect, useState } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import "./styles/main.scss";
|
||||
import { AppOverlays } from "./components/AppOverlays.jsx";
|
||||
|
|
@ -175,4 +175,4 @@ function App() {
|
|||
);
|
||||
}
|
||||
|
||||
createRoot(document.querySelector("#app")).render(<App />);
|
||||
createRoot(document.querySelector("#app")).render(<StrictMode><App /></StrictMode>);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue