Yuki Takei il y a 3 ans
Parent
commit
f5102c23f2

+ 1 - 0
packages/app/src/components/ReactMarkdownComponents/Header.tsx

@@ -57,6 +57,7 @@ export const Header = (props: HeaderProps): JSX.Element => {
 
   const CustomTag = `h${level}` as keyof JSX.IntrinsicElements;
 
+  // update isActive when hash is changed
   useEffect(() => {
     const handler = (url: string) => {
       const hash = (new URL(url, 'https://example.com')).hash.slice(1);