diff --git a/core/docz-theme-default/src/components/shared/Sidebar/SmallLink.tsx b/core/docz-theme-default/src/components/shared/Sidebar/SmallLink.tsx index b0fc499cc..8ba490b91 100644 --- a/core/docz-theme-default/src/components/shared/Sidebar/SmallLink.tsx +++ b/core/docz-theme-default/src/components/shared/Sidebar/SmallLink.tsx @@ -66,7 +66,7 @@ export const SmallLink: SFC = ({ useEffect(() => { const currentHash = location.hash && location.hash.slice(1, Infinity) setActive(Boolean(slug === currentHash)) - }, []) + }, [location]) return }