mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
14 lines
405 B
TypeScript
14 lines
405 B
TypeScript
import { configureStore } from '@reduxjs/toolkit';
|
|
import { baseApi } from '@ema-platform/api';
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
[baseApi.reducerPath]: baseApi.reducer,
|
|
},
|
|
middleware: (getDefaultMiddleware) =>
|
|
getDefaultMiddleware().concat(baseApi.middleware),
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|