uninstall redux-persist, weil nimmt viel Performance weg
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import { Provider } from "react-redux";
|
||||
import { PersistGate } from "redux-persist/integration/react";
|
||||
import { persistor } from "@/redux/store";
|
||||
import store, { useAppDispatch } from "@/redux/store";
|
||||
|
||||
import { useAppDispatch } from "@/redux/store";
|
||||
import { AppProps } from "next/app";
|
||||
|
||||
import Header from "@/components/header/Header";
|
||||
import Navigation from "@/components/navigation/Navigation";
|
||||
import Footer from "@/components/footer/Footer";
|
||||
import { store } from "@/redux/store";
|
||||
|
||||
// Thunks importieren
|
||||
import { getKueDataThunk } from "@/redux/thunks/getKueDataThunk";
|
||||
@@ -38,11 +38,9 @@ import "@/styles/globals.css";
|
||||
|
||||
function MyApp({ Component, pageProps }: AppProps) {
|
||||
return (
|
||||
<PersistGate loading={null} persistor={persistor}>
|
||||
<Provider store={store}>
|
||||
<AppContent Component={Component} pageProps={pageProps} />
|
||||
</Provider>
|
||||
</PersistGate>
|
||||
<Provider store={store}>
|
||||
<AppContent Component={Component} pageProps={pageProps} />
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user