Skip to content

Commit

Permalink
Update counter example
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Oct 6, 2016
1 parent 14d4980 commit 8fa46e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/counter/store/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import thunk from 'redux-thunk';
import invariant from 'redux-immutable-state-invariant';
import { composeWithDevTools } from 'remote-redux-devtools';
import reducer from '../reducers';
import * as actionCreators from '../actions/counter';

export default function configureStore(initialState) {

const store = createStore(reducer, initialState, composeWithDevTools(
applyMiddleware(invariant(), thunk),
)({ realtime: true }));
const composeEnhancers = composeWithDevTools({ realtime: true, actionCreators });
const store = createStore(reducer, initialState, composeEnhancers(
applyMiddleware(invariant(), thunk)
));

if (module.hot) {
// Enable Webpack hot module replacement for reducers
Expand Down

0 comments on commit 8fa46e4

Please sign in to comment.