Use hashHistory instead of browserHistory

This commit is contained in:
Grégoire Delattre 2016-11-15 13:52:33 +01:00
parent e13ec0a6ca
commit efcfced18f

View File

@ -1,6 +1,6 @@
import { createStore, compose } from 'redux';
import { syncHistoryWithStore } from 'react-router-redux'
import { browserHistory } from 'react-router'
import { hashHistory } from 'react-router'
// Import the root reducer
import rootReducer from './reducers/index'
@ -9,6 +9,6 @@ import rootReducer from './reducers/index'
const store = createStore(rootReducer);
// Sync history with store
export const history = syncHistoryWithStore(browserHistory, store);
export const history = syncHistoryWithStore(hashHistory, store);
export default store;