From 5b4e2ffeaccf105d425d83407b82805c124e2cca Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 21 Jul 2016 18:08:35 -0700 Subject: Add mock dev mode --- development/uiStore.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 development/uiStore.js (limited to 'development/uiStore.js') diff --git a/development/uiStore.js b/development/uiStore.js new file mode 100644 index 000000000..1299ee1dc --- /dev/null +++ b/development/uiStore.js @@ -0,0 +1,18 @@ +const createStore = require('redux').createStore +const applyMiddleware = require('redux').applyMiddleware +const thunkMiddleware = require('redux-thunk') +const createLogger = require('redux-logger') +const rootReducer = require('../ui/app/reducers') + +module.exports = configureStore + +const loggerMiddleware = createLogger() + +const createStoreWithMiddleware = applyMiddleware( + thunkMiddleware, + loggerMiddleware +)(createStore) + +function configureStore (initialState) { + return createStoreWithMiddleware(rootReducer, initialState) +} -- cgit v1.2.3