- implementing immutable.js
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import { Map } from 'immutable';
|
||||
import { applyMiddleware, compose, createStore } from 'redux';
|
||||
import { composeWithDevTools } from 'remote-redux-devtools';
|
||||
import thunk from 'redux-thunk';
|
||||
|
||||
import rootReducer from '../reducers/index.js';
|
||||
|
||||
const composeEnhancers = composeWithDevTools({ port: 8000, realtime: true, suppressConnectErrors: false });
|
||||
|
||||
export const store = createStore(
|
||||
rootReducer,
|
||||
compose(applyMiddleware(thunk)),
|
||||
Map(),
|
||||
composeEnhancers(applyMiddleware(thunk)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user