mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-20 10:08:17 +02:00
fix(v2): ignore hash changes in useChangeRoute hook (#5023)
* fix(v2): ignore hash changes in useChangeRoute hook * refactor and introduce useLocationChange hook Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
41eaa690ee
commit
8bda3b2dbf
8 changed files with 73 additions and 37 deletions
|
@ -33,7 +33,9 @@ export {useTitleFormatter} from './utils/generalUtils';
|
|||
|
||||
export {usePluralForm} from './utils/usePluralForm';
|
||||
|
||||
export {useChangeRoute} from './utils/useChangeRoute';
|
||||
export {useLocationChange} from './utils/useLocationChange';
|
||||
|
||||
export {usePrevious} from './utils/usePrevious';
|
||||
|
||||
export {
|
||||
useDocsPreferredVersion,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue