2016-06-06 14:54:29 +02:00
|
|
|
import useRouterHistory from 'react-router/es6/useRouterHistory';
|
2016-06-20 10:15:49 +02:00
|
|
|
// History should be included by react-router
|
|
|
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
2015-10-05 11:52:23 +02:00
|
|
|
import createBrowserHistory from 'history/lib/createBrowserHistory';
|
2016-01-25 14:50:55 +01:00
|
|
|
|
2015-10-13 14:19:08 +02:00
|
|
|
import AppConstants from './constants/application_constants';
|
2015-10-05 11:52:23 +02:00
|
|
|
|
2015-10-13 14:19:08 +02:00
|
|
|
|
2016-01-25 14:50:55 +01:00
|
|
|
const history = useRouterHistory(createBrowserHistory)({
|
2016-06-20 10:15:49 +02:00
|
|
|
basename: AppConstants.appBasePath
|
2015-10-13 14:19:08 +02:00
|
|
|
});
|
2016-01-08 11:44:25 +01:00
|
|
|
|
|
|
|
history.locationQueue = [];
|
|
|
|
|
|
|
|
export default history;
|