Ver Fonte

update useCallback

jam411 há 3 anos atrás
pai
commit
f24504432c
1 ficheiros alterados com 1 adições e 1 exclusões
  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']}`}>