import { configureStore, ThunkAction, Action } from "@reduxjs/toolkit" import pluginsReducer from "../slices/plugins" import pluginsTxtReducer from "../slices/pluginsTxt" import modListFiltersReducer from "../slices/modListFilters" export function makeStore() { return configureStore({ reducer: { pluginsTxt: pluginsTxtReducer, plugins: pluginsReducer, modListFilters: modListFiltersReducer }, middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false }), }) } const store = makeStore() export type AppState = ReturnType export type AppDispatch = typeof store.dispatch export type AppThunk = ThunkAction< ReturnType, AppState, unknown, Action > export default store