export const dataExplorerMiddleware = (service: DataExplorerMiddlewareService): Middleware => api => next => {
const actions = bindDataExplorerActions(service.getId());
- next(actions.SET_COLUMNS({ columns: service.getColumns() }));
return action => {
const handleAction = <T extends { id: string }>(handler: (data: T) => void) =>
TOGGLE_SORT: handleAction(() => {
api.dispatch(actions.REQUEST_ITEMS());
}),
- SET_SEARCH_VALUE: handleAction(() => {
+ SET_EXPLORER_SEARCH_VALUE: handleAction(() => {
api.dispatch(actions.RESET_PAGINATION());
api.dispatch(actions.REQUEST_ITEMS());
}),