Files
web/src/store.ts
Sacha Weatherstone f597600a95 WIP
2021-08-03 19:37:36 +10:00

19 lines
479 B
TypeScript

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