| import { configureStore } from '@reduxjs/toolkit';
|
| import authReducer from './slices/authSlice';
|
| import agentReducer from './slices/agentSlice';
|
| import chatReducer from './slices/chatSlice';
|
| import workflowReducer from './slices/workflowSlice';
|
| import uiReducer from './slices/uiSlice';
|
|
|
| export const store = configureStore({
|
| reducer: {
|
| auth: authReducer,
|
| agent: agentReducer,
|
| chat: chatReducer,
|
| workflow: workflowReducer,
|
| ui: uiReducer,
|
| },
|
| middleware: (getDefaultMiddleware) =>
|
| getDefaultMiddleware({
|
| serializableCheck: {
|
|
|
| ignoredActions: ['chat/updateMessage'],
|
|
|
| ignoredActionPaths: ['payload.timestamp'],
|
|
|
| ignoredPaths: ['chat.messages'],
|
| },
|
| }),
|
| });
|
|
|
| export default store; |