UNPKG

redux

Version:

Predictable state container for JavaScript apps

25 lines (23 loc) 560 B
/** * These are private action types reserved by Redux. * For any unknown actions, you must return the current state. * If the current state is undefined, you must return the initial state. * Do not reference these action types directly in your code. */ const ActionTypes = { INIT: '@@redux/INIT' + Math.random() .toString(36) .substring(7) .split('') .join('.'), REPLACE: '@@redux/REPLACE' + Math.random() .toString(36) .substring(7) .split('') .join('.') } export default ActionTypes