UNPKG

react-redux-fetch

Version:

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

13 lines (10 loc) 327 B
// @flow export const PREFIX:string = 'react-redux-fetch/'; export const FETCH:Object = { for: verb => ({ REQUEST: `${PREFIX}${verb.toUpperCase()}_REQUEST`, FULFILL: `${PREFIX}${verb.toUpperCase()}_FULFIL`, REJECT: `${PREFIX}${verb.toUpperCase()}_REJECT`, }), }; export const CLEAR:string = `${PREFIX}CLEAR`;