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:
parent
786c1afe12
commit
f4bc67a076
1 changed files with 6 additions and 4 deletions
|
@ -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(
|
||||
<StrictMode>
|
||||
<HistoryRouter history={history}>
|
||||
<AppRoutes />
|
||||
</HistoryRouter>,
|
||||
</HistoryRouter>
|
||||
</StrictMode>,
|
||||
document.getElementById('reactRoot')
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue