Created
December 18, 2018 20:52
-
-
Save rerodrigues/b1b60421b8a0ae3b847f14de9dbf5582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// global Action Types | |
exports.START_FETCHING = 'START_FETCHING'; | |
exports.GO_TO_PAGE = 'GO_TO_PAGE'; | |
exports.SHOW_ERROR = 'SHOW_ERROR'; | |
// specific Action Types | |
const globalActionTypes = require('../../../business/actionTypes'); | |
exports.SPECIFIC_ACTION = 'SPECIFIC_ACTION'; | |
module.exports = { | |
...globalActionTypes, | |
...exports, | |
}; | |
// controller | |
const { START_FETCHING, SPECIFIC_ACTION } = require('../business/actionTypes'); | |
console.log(START_FETCHING, SPECIFIC_ACTION); | |
// 'START_FETCHING', 'SPECIFIC_ACTION' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment