2016-07-20 15:51:49 -03:00
|
|
|
import { createHashHistory } from 'history';
|
2016-07-15 15:05:04 -03:00
|
|
|
import { useRouterHistory } from 'react-router';
|
|
|
|
import { syncHistoryWithStore } from 'react-router-redux';
|
|
|
|
|
2016-07-20 15:51:49 -03:00
|
|
|
let history = useRouterHistory(createHashHistory)({
|
|
|
|
queryKey: false
|
2016-07-15 15:05:04 -03:00
|
|
|
});
|
|
|
|
|
|
|
|
const syncHistory = (store) => {
|
|
|
|
history = syncHistoryWithStore(history, store);
|
|
|
|
};
|
|
|
|
|
|
|
|
export { syncHistory };
|
|
|
|
export default history;
|