UNPKG

react-redux-fetch

Version:

A declarative and customizable way to fetch data for React components and manage that data in the Redux state

9 lines (6 loc) 255 B
import merge from 'lodash/merge'; import actions from '../actions'; const onFulfillment = (store, next, action, meta) => value => ( next(actions.for(action.method).fulfill(merge(action, { value, request: { meta } }))) ); export default onFulfillment;