diff --git a/src/combineReducers.js b/src/combineReducers.js index 3a9d629f49..8dedc64e38 100644 --- a/src/combineReducers.js +++ b/src/combineReducers.js @@ -1,4 +1,4 @@ -import { ActionTypes } from './createStore' +import ActionTypes from './utils/actionTypes' import isPlainObject from 'lodash/isPlainObject' import warning from './utils/warning' diff --git a/src/createStore.js b/src/createStore.js index bfe9d69123..e81e368ae7 100644 --- a/src/createStore.js +++ b/src/createStore.js @@ -1,15 +1,7 @@ import isPlainObject from 'lodash/isPlainObject' import $$observable from 'symbol-observable' -/** - * 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. - */ -export const ActionTypes = { - INIT: '@@redux/INIT' -} +import ActionTypes from './utils/actionTypes' /** * Creates a Redux store that holds the state tree. diff --git a/src/utils/actionTypes.js b/src/utils/actionTypes.js new file mode 100644 index 0000000000..82c3ffedbe --- /dev/null +++ b/src/utils/actionTypes.js @@ -0,0 +1,11 @@ +/** + * 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. + */ +var ActionTypes = { + INIT: '@@redux/INIT' +} + +export default ActionTypes diff --git a/test/combineReducers.spec.js b/test/combineReducers.spec.js index 2fd1ab1eab..b722a151a1 100644 --- a/test/combineReducers.spec.js +++ b/test/combineReducers.spec.js @@ -1,6 +1,7 @@ /* eslint-disable no-console */ import { combineReducers } from '../src' -import createStore, { ActionTypes } from '../src/createStore' +import createStore from '../src/createStore' +import ActionTypes from '../src/utils/actionTypes' describe('Utils', () => { describe('combineReducers', () => {