UNPKG

redux-grim

Version:

Generator for asynchronous Redux endpoint actions and reducers

23 lines (20 loc) 360 B
import { getSetType } from '../util'; export function setAction(entityType, payload, path) { return { type: getSetType(entityType), payload, meta: { entityType, path } }; } export function resetAction({ includes, excludes } = {}) { return { type: 'grim.reset', payload: { excludes, includes } }; }