Files
meshtastic-web/src/store.ts
T
2021-08-03 21:34:12 +10:00

19 lines
487 B
TypeScript

import { configureStore } from '@reduxjs/toolkit';
import appReducer from './slices/appSlice';
import meshtasticReducer from './slices/meshtasticSlice';
export const store = configureStore({
reducer: {
app: appReducer,
meshtastic: meshtasticReducer,
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
serializableCheck: false,
}),
});
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;