Skip to content

Commit

Permalink
FIX redux dev tools error zalmoxisus/redux-devtools-extension#320
Browse files Browse the repository at this point in the history
  • Loading branch information
Fischaela committed Nov 20, 2018
1 parent 96c6ac4 commit a1af420
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import ReactDOM from 'react-dom'
import registerServiceWorker from './registerServiceWorker'
import { createStore, applyMiddleware } from 'redux'
import { compose, createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'

import chosenApp from './reducer'
Expand All @@ -11,10 +11,12 @@ import { initialiseSession } from './containers/Session/SessionActions'

import Root from './Root'

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
const store = createStore(
chosenApp,
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose,
applyMiddleware(thunk),
composeEnhancers(
applyMiddleware(thunk)
),
)
store.dispatch(initialiseSession())

Expand Down

0 comments on commit a1af420

Please sign in to comment.