From c443635945bf88d0a7291f1fea285cdd00b158bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Carmona?= Date: Thu, 25 May 2017 18:37:10 +0200 Subject: [PATCH] feat(with-redux): add redux tools to example (#1994) --- examples/with-redux/package.json | 1 + examples/with-redux/store.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/with-redux/package.json b/examples/with-redux/package.json index 03810f25..2885ec60 100644 --- a/examples/with-redux/package.json +++ b/examples/with-redux/package.json @@ -10,6 +10,7 @@ "next": "latest", "next-redux-wrapper": "^1.0.0", "react": "^15.4.2", + "redux-devtools-extension": "^2.13.2", "react-dom": "^15.4.2", "react-redux": "^5.0.1", "redux": "^3.6.0", diff --git a/examples/with-redux/store.js b/examples/with-redux/store.js index 71ab2d5e..ce5abe4d 100644 --- a/examples/with-redux/store.js +++ b/examples/with-redux/store.js @@ -1,4 +1,5 @@ import { createStore, applyMiddleware } from 'redux' +import { composeWithDevTools } from 'redux-devtools-extension' import thunkMiddleware from 'redux-thunk' const exampleInitialState = { @@ -39,5 +40,5 @@ export const addCount = () => dispatch => { } export const initStore = (initialState = exampleInitialState) => { - return createStore(reducer, initialState, applyMiddleware(thunkMiddleware)) + return createStore(reducer, initialState, composeWithDevTools(applyMiddleware(thunkMiddleware))) }