UNPKG

react-redux-fetch

Version:

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

11 lines (7 loc) 295 B
'use strict'; exports.__esModule = true; var _request = require('../constants/request'); var fetchFulfill = function fetchFulfill(state, action) { return state.merge(_request.FULFILLED).setIn(['value'], action.value).setIn(['meta'], action.request.meta); }; exports.default = fetchFulfill;