mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
remove StrictMode, it doesn't really help and causes all components to be rendered twice in dev
This commit is contained in:
@@ -2,7 +2,6 @@ import "@fontsource/open-sans"
|
||||
import { store } from "app/store"
|
||||
import dayjs from "dayjs"
|
||||
import relativeTime from "dayjs/plugin/relativeTime"
|
||||
import React from "react"
|
||||
import ReactDOM from "react-dom/client"
|
||||
import { Provider } from "react-redux"
|
||||
import "swagger-ui-react/swagger-ui.css"
|
||||
@@ -11,9 +10,7 @@ import { App } from "./App"
|
||||
dayjs.extend(relativeTime)
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
<Provider store={store}>
|
||||
<App />
|
||||
</Provider>
|
||||
</React.StrictMode>
|
||||
<Provider store={store}>
|
||||
<App />
|
||||
</Provider>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user