You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest implementation and it does not work
import { configureStore } from '@reduxjs/toolkit';
import { createWrapper } from 'next-redux-wrapper';
import themeReducer from './themeSlice';
import chatBotLogicReducer from './chatBotLogicSlice';
import chatHeaderDesignSlice from './chatHeaderDesignSlice';
import chatBotHeaderDescriptionSlice from './chatBotHeaderDescriptionSlice';
I am using the latest implementation and it does not work
import { configureStore } from '@reduxjs/toolkit';
import { createWrapper } from 'next-redux-wrapper';
import themeReducer from './themeSlice';
import chatBotLogicReducer from './chatBotLogicSlice';
import chatHeaderDesignSlice from './chatHeaderDesignSlice';
import chatBotHeaderDescriptionSlice from './chatBotHeaderDescriptionSlice';
export const makeStore = () =>
configureStore({
reducer: {
theme: themeReducer,
chatHeaderDesignSlice: chatHeaderDesignSlice,
chatBotLogic: chatBotLogicReducer,
chatBotHeaderDescription: chatBotHeaderDescriptionSlice,
},
});
export const wrapper = createWrapper(makeStore);
// _app.js
import AppWrapper from './AppWrapper';
import { wrapper } from '../store/store.js';
import '../app/globals.css';
import EclipseAnimation from '@/components/Eclipsetoggle';
function MyApp({ Component, pageProps }) {
return (
<EclipseAnimation onToggleMode={() => {}} />
<Component {...pageProps} />
);
}
export default wrapper.withRedux(MyApp);
it is not clear how one implements this new version
The text was updated successfully, but these errors were encountered: