Skip to content

Commit

Permalink
Make sure Redux Devtools is finding the store (#894)
Browse files Browse the repository at this point in the history
Makes it easier for people evaluating with existing tools & behaviours to find redux data
  • Loading branch information
ptomasroos authored and gigabo committed Mar 17, 2017
1 parent 7c6cf78 commit bf241ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-server-examples/redux-basic/pages/store.js
Original file line number Diff line number Diff line change
@@ -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__()
)

0 comments on commit bf241ff

Please sign in to comment.