1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Enable react strict mode

This commit is contained in:
Bill Thornton 2022-10-18 00:18:54 -04:00
parent 786c1afe12
commit f4bc67a076

View file

@ -7,7 +7,7 @@ import 'classlist.js';
import 'whatwg-fetch';
import 'resize-observer-polyfill';
import './assets/css/site.scss';
import React from 'react';
import React, { StrictMode } from 'react';
import * as ReactDOM from 'react-dom';
import Events from './utils/events.ts';
import ServerConnections from './components/ServerConnections';
@ -145,9 +145,11 @@ async function onAppReady() {
await appRouter.start();
ReactDOM.render(
<HistoryRouter history={history}>
<AppRoutes />
</HistoryRouter>,
<StrictMode>
<HistoryRouter history={history}>
<AppRoutes />
</HistoryRouter>
</StrictMode>,
document.getElementById('reactRoot')
);