svrcekmichal / redux-axios-middleware

Redux middleware for fetching data with axios HTTP client
MIT License
920 stars 96 forks source link

Why not export the `SUCCESS_SUFFIX` and `ERROR_SUFFIX` in `index.js`? #42

Closed mytharcher closed 7 years ago

mytharcher commented 7 years ago

I noticed in the document the default success and error suffix for action types are mentioned and exported from getActionTypes.js. But in index.js the 2 default suffix constants are not exported.

This makes developers to maintain 2 more hardcode constant in their code. However I wish I could use the default constants rather than hardcode.