Przeglądaj źródła

update useCallback

jam411 3 lat temu
rodzic
commit
f24504432c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/app/src/components/TableOfContents.tsx

+ 1 - 1
packages/app/src/components/TableOfContents.tsx

@@ -45,7 +45,7 @@ const TableOfContents = (): JSX.Element => {
     }
     // bottom - revisionToc top
     return bottom - (containerTop + containerPaddingTop);
-  }, [isUserPage]);
+  }, [rendererOptions]);
 
   return (
     <div id="revision-toc" className={`revision-toc ${styles['revision-toc']}`}>