Re-enable React strict mode
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user