iterative/vscode-dvc

View on GitHub
webview/src/experiments/store.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { configureStore } from '@reduxjs/toolkit'
import tableDataReducer from './state/tableDataSlice'
import rowSelectionReducer from './state/rowSelectionSlice'
import headerDropTargetReducer from './state/headerDropTargetSlice'

export const experimentsReducers = {
  headerDropTarget: headerDropTargetReducer,
  rowSelection: rowSelectionReducer,
  tableData: tableDataReducer
}

export const experimentsStore = configureStore({
  reducer: experimentsReducers
})

export type ExperimentsState = ReturnType<typeof experimentsStore.getState>
export type ExperimentsDispatch = typeof experimentsStore.dispatch