(shared conv) centralised into redux state

This commit is contained in:
ManishMadan2882
2024-07-26 15:19:38 +05:30
parent 052669a0b0
commit 8276b6c9a9
3 changed files with 105 additions and 21 deletions

View File

@@ -1,5 +1,6 @@
import { configureStore } from '@reduxjs/toolkit';
import { conversationSlice } from './conversation/conversationSlice';
import { sharedConversationSlice } from './conversation/sharedConversationSlice';
import {
prefListenerMiddleware,
prefSlice,
@@ -42,6 +43,7 @@ const store = configureStore({
reducer: {
preference: prefSlice.reducer,
conversation: conversationSlice.reducer,
sharedConversation: sharedConversationSlice.reducer,
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware().concat(prefListenerMiddleware.middleware),