Re-enable React strict mode

This commit is contained in:
Robin
2025-10-08 16:39:27 -04:00
parent 427a8dd644
commit e346c8c148

View File

@@ -11,6 +11,7 @@ Please see LICENSE in the repository root for full details.
// dependency references. // dependency references.
import "matrix-js-sdk/lib/browser-index"; import "matrix-js-sdk/lib/browser-index";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client"; import { createRoot } from "react-dom/client";
import "./index.css"; import "./index.css";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
@@ -59,9 +60,9 @@ if (fatalError !== null) {
Initializer.initBeforeReact() Initializer.initBeforeReact()
.then(() => { .then(() => {
root.render( root.render(
// <StrictMode> <StrictMode>
<App vm={new AppViewModel()} />, <App vm={new AppViewModel()} />,
// </StrictMode>, </StrictMode>,
); );
}) })
.catch((e) => { .catch((e) => {