diff --git a/packages/react-server-examples/redux-basic/pages/store.js b/packages/react-server-examples/redux-basic/pages/store.js index e941404c7..293c87899 100644 --- a/packages/react-server-examples/redux-basic/pages/store.js +++ b/packages/react-server-examples/redux-basic/pages/store.js @@ -1,4 +1,7 @@ import { createStore } from 'redux' import reducer from './counter-app/reducer' -export default createStore(reducer) +export default createStore( + reducer, + typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() +)