refactor: reduce exported members of docusaurus router (#6651)

This commit is contained in:
Joshua Chen 2022-02-11 19:16:13 +08:00 committed by GitHub
parent cfef4755da
commit acf4ae8f96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 12 deletions

View file

@ -7,7 +7,7 @@
import {useEffect, useRef} from 'react';
import {useHistory} from '@docusaurus/router';
import type {Location, Action} from '@docusaurus/history';
import type {Location, Action} from 'history';
type HistoryBlockHandler = (location: Location, action: Action) => void | false;

View file

@ -7,7 +7,7 @@
import {useEffect} from 'react';
import {useLocation} from '@docusaurus/router';
import type {Location} from '@docusaurus/history';
import type {Location} from 'history';
import {usePrevious} from './usePrevious';
import {useDynamicCallback} from './reactUtils';