mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +02:00
8295bd6882
this shall be a progressive process
20 lines
466 B
JavaScript
20 lines
466 B
JavaScript
const createLogger = require('redux-logger');
|
|
const promiseMiddleware = require('redux-promise-middleware').default;
|
|
const thunk = require('redux-thunk').default;
|
|
const redux = require('redux');
|
|
const reducer = require('./actions');
|
|
|
|
const {
|
|
createStore,
|
|
compose,
|
|
applyMiddleware
|
|
} = redux;
|
|
|
|
module.exports = (state = Object.freeze({})) => {
|
|
return createStore(reducer, state, applyMiddleware(
|
|
createLogger(),
|
|
promiseMiddleware(),
|
|
thunk
|
|
));
|
|
};
|