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:
Alexey Pyltsyn 2021-06-22 13:41:58 +03:00 committed by GitHub
parent 41eaa690ee
commit 8bda3b2dbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 73 additions and 37 deletions

View file

@ -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,