mirror of
https://github.com/meshtastic/web.git
synced 2026-04-21 22:40:01 -04:00
19 lines
479 B
TypeScript
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;
|