From 36baf3e5725aeae00d81d3a082b3c04074e09f8e Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 15 Nov 2023 17:09:13 +0100 Subject: refactor(hooks): replace useRouteChange with useOnRouteChange hook * handle both event start and event complete * clean the effect * add tests --- src/utils/hooks/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/hooks/index.ts') diff --git a/src/utils/hooks/index.ts b/src/utils/hooks/index.ts index ad412c8..d42c32b 100644 --- a/src/utils/hooks/index.ts +++ b/src/utils/hooks/index.ts @@ -13,6 +13,7 @@ export * from './use-local-storage'; export * from './use-match-media'; export * from './use-mutation-observer'; export * from './use-on-click-outside'; +export * from './use-on-route-change'; export * from './use-pagination'; export * from './use-posts-list'; export * from './use-prism'; @@ -20,7 +21,6 @@ export * from './use-prism-theme'; export * from './use-reading-time'; export * from './use-redirection'; export * from './use-reduced-motion'; -export * from './use-route-change'; export * from './use-scroll-lock'; export * from './use-scroll-position'; export * from './use-scrollbar-width'; -- cgit v1.2.3