import { configureStore } from '@reduxjs/toolkit' ; import elements from './elements/elementsSlice' ; import attachments from './attachments/attachmentsSlice' ; import conversations from './conversations/conversationsSlice' ; import messages from './messages/messagesSlice' ; import contacts from './contacts/contactsSlice' ; export const store = configureStore ( { reducer : { elements , conversations , attachments , messages , contacts , } , middleware : ( getDefaultMiddleware ) => getDefaultMiddleware ( { serializableCheck : { ignoreState : true , ignoredActionPaths : [ 'meta.arg' , 'payload.abortController' , 'payload.preparation' , 'payload.decryption' , 'payload' , 'payload.attachment' , 'payload.contacts' , 'payload.contactGroups' , ] , warnAfter : 100 , } , } ) , } ) ; export type RootState = ReturnType < typeof store . getState > ; export type AppDispatch = typeof store . dispatch ;