Skip to content

Instantly share code, notes, and snippets.

@rerodrigues
Created December 18, 2018 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rerodrigues/b1b60421b8a0ae3b847f14de9dbf5582 to your computer and use it in GitHub Desktop.
Save rerodrigues/b1b60421b8a0ae3b847f14de9dbf5582 to your computer and use it in GitHub Desktop.
// 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