19 lines
487 B
TypeScript
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;
|