Use hashHistory instead of browserHistory
This commit is contained in:
parent
e13ec0a6ca
commit
efcfced18f
@ -1,6 +1,6 @@
|
|||||||
import { createStore, compose } from 'redux';
|
import { createStore, compose } from 'redux';
|
||||||
import { syncHistoryWithStore } from 'react-router-redux'
|
import { syncHistoryWithStore } from 'react-router-redux'
|
||||||
import { browserHistory } from 'react-router'
|
import { hashHistory } from 'react-router'
|
||||||
|
|
||||||
// Import the root reducer
|
// Import the root reducer
|
||||||
import rootReducer from './reducers/index'
|
import rootReducer from './reducers/index'
|
||||||
@ -9,6 +9,6 @@ import rootReducer from './reducers/index'
|
|||||||
const store = createStore(rootReducer);
|
const store = createStore(rootReducer);
|
||||||
|
|
||||||
// Sync history with store
|
// Sync history with store
|
||||||
export const history = syncHistoryWithStore(browserHistory, store);
|
export const history = syncHistoryWithStore(hashHistory, store);
|
||||||
|
|
||||||
export default store;
|
export default store;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user