You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
364 B
13 lines
364 B
import { set } from '../baseActions';
|
|
|
|
function createSetServerSideCollectionFilterHandler(section, getFromState, fetchHandler) {
|
|
return function(payload) {
|
|
return function(dispatch, getState) {
|
|
dispatch(set({ section, ...payload }));
|
|
dispatch(fetchHandler({ page: 1 }));
|
|
};
|
|
};
|
|
}
|
|
|
|
export default createSetServerSideCollectionFilterHandler;
|