diff --git a/client/index.js b/client/index.js index 58a797c..e1d665c 100644 --- a/client/index.js +++ b/client/index.js @@ -1,5 +1,6 @@ import { Router, Route, browserHistory } from 'react-router' +import { syncHistoryWithStore } from 'react-router-redux' import { Provider } from 'react-redux' import ReactDOM from 'react-dom' import React from 'react' @@ -8,10 +9,11 @@ import App from './containers/App' import configure from './store' const store = configure() +const history = syncHistoryWithStore(browserHistory, store) ReactDOM.render( - + diff --git a/client/reducers/index.js b/client/reducers/index.js index 5b0e2ae..b7c82fa 100644 --- a/client/reducers/index.js +++ b/client/reducers/index.js @@ -1,5 +1,5 @@ -import { routeReducer as routing } from 'react-router-redux' +import { routerReducer as routing } from 'react-router-redux' import { combineReducers } from 'redux' import todos from './todos' diff --git a/client/store/index.js b/client/store/index.js index 300a4ae..9f5f6f0 100644 --- a/client/store/index.js +++ b/client/store/index.js @@ -1,7 +1,5 @@ import { createStore, applyMiddleware } from 'redux' -import { syncHistory } from 'react-router-redux' -import { browserHistory } from 'react-router' import { logger } from '../middleware' import rootReducer from '../reducers' @@ -12,8 +10,7 @@ export default function configure(initialState) { : createStore const createStoreWithMiddleware = applyMiddleware( - logger, - syncHistory(browserHistory) + logger )(create) const store = createStoreWithMiddleware(rootReducer, initialState) diff --git a/package.json b/package.json index 2e1b008..6b02a90 100644 --- a/package.json +++ b/package.json @@ -11,29 +11,29 @@ }, "license": "MIT", "devDependencies": { - "babel-core": "^6.3.26", - "babel-loader": "^6.2.0", - "babel-plugin-transform-runtime": "^6.3.13", - "babel-preset-es2015": "^6.3.13", - "babel-preset-react": "^6.3.13", - "babel-preset-stage-0": "^6.3.13", + "babel-core": "^6.5.2", + "babel-loader": "^6.2.3", + "babel-plugin-transform-runtime": "^6.5.2", + "babel-preset-es2015": "^6.5.0", + "babel-preset-react": "^6.5.0", + "babel-preset-stage-0": "^6.5.0", "css-loader": "^0.23.1", - "file-loader": "^0.8.4", - "postcss-loader": "^0.8.0", + "file-loader": "^0.8.5", + "postcss-loader": "^0.8.1", "rucksack-css": "^0.8.5", - "style-loader": "^0.12.4", - "webpack": "^1.12.2", - "webpack-dev-server": "^1.12.0", - "webpack-hot-middleware": "^2.2.0", - "babel-runtime": "^6.3.19", - "classnames": "^2.1.2", - "react": "^0.14.0", - "react-dom": "^0.14.0", + "style-loader": "^0.13.0", + "webpack": "^1.12.14", + "webpack-dev-server": "^1.14.1", + "webpack-hot-middleware": "^2.7.1", + "babel-runtime": "^6.5.0", + "classnames": "^2.2.3", + "react": "^0.14.7", + "react-dom": "^0.14.7", "react-hot-loader": "^1.3.0", - "react-redux": "^4.0.6", - "react-router": "^2.0.0-rc5", - "react-router-redux": "^2.1.0", - "redux": "^3.0.2", - "redux-actions": "^0.9.0" + "react-redux": "^4.4.0", + "react-router": "^2.0.0", + "react-router-redux": "^4.0.0", + "redux": "^3.3.1", + "redux-actions": "^0.9.1" } }