diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-15 17:09:13 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-15 17:26:17 +0100 |
| commit | 36baf3e5725aeae00d81d3a082b3c04074e09f8e (patch) | |
| tree | 34069dc40f7cd45707e8cea0a8993e94841af778 /src/utils/hooks/index.ts | |
| parent | c826ad66df066b90b09009f2f4b83b56d018436e (diff) | |
refactor(hooks): replace useRouteChange with useOnRouteChange hook
* handle both event start and event complete
* clean the effect
* add tests
Diffstat (limited to 'src/utils/hooks/index.ts')
| -rw-r--r-- | src/utils/hooks/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |
