mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 06:50:36 +02:00
refactor: reduce exported members of docusaurus router (#6651)
This commit is contained in:
parent
cfef4755da
commit
acf4ae8f96
6 changed files with 7 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue