Skip to content

Commit

Permalink
Merge pull request react-boilerplate#559 from MrOutis/master
Browse files Browse the repository at this point in the history
Update Redux dev-tools extension's store
  • Loading branch information
mxstbr authored Jun 16, 2016
2 parents 41d678f + 5378726 commit 5441e74
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ openSansObserver.check().then(() => {
const initialState = {};
const store = configureStore(initialState, browserHistory);

// If you use Redux devTools extension, since v2.0.1, they added an
// `updateStore`, so any enhancers that change the store object
// could be used with the devTools' store.
// As this boilerplate uses Redux & Redux-Saga, the `updateStore` is needed
// if you want to `take` actions in your Sagas, dispatched from devTools.
if (window.devToolsExtension) {
window.devToolsExtension.updateStore(store);
}

// Sync history and store, as the react-router-redux reducer
// is under the non-default key ("routing"), selectLocationState
// must be provided for resolving how to retrieve the "route" in the state
Expand Down

0 comments on commit 5441e74

Please sign in to comment.