UNPKG

redux-boost

Version:
10 lines (9 loc) 353 B
import { requestActions } from './actions'; export var matchFetchSuccess = function matchFetchSuccess(name) { return function (_ref) { var type = _ref.type, _ref$payload = _ref.payload, payload = _ref$payload === undefined ? {} : _ref$payload; return type === requestActions.fetchSuccess.type && payload.name === name; }; };