mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
16 lines
462 B
JavaScript
16 lines
462 B
JavaScript
import useRouterHistory from 'react-router/es6/useRouterHistory';
|
|
// History should be included by react-router
|
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
import createBrowserHistory from 'history/lib/createBrowserHistory';
|
|
|
|
import AppConstants from './constants/application_constants';
|
|
|
|
|
|
const history = useRouterHistory(createBrowserHistory)({
|
|
basename: AppConstants.appBasePath
|
|
});
|
|
|
|
history.locationQueue = [];
|
|
|
|
export default history;
|