mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
14 lines
350 B
JavaScript
14 lines
350 B
JavaScript
import useRouterHistory from 'react-router/es6/useRouterHistory';
|
|
import createBrowserHistory from 'history/lib/createBrowserHistory';
|
|
|
|
import AppConstants from './constants/application_constants';
|
|
|
|
|
|
const history = useRouterHistory(createBrowserHistory)({
|
|
basename: AppConstants.baseUrl
|
|
});
|
|
|
|
history.locationQueue = [];
|
|
|
|
export default history;
|