Ver Fonte

fix useCalback dependencies

WNomunomu há 2 anos atrás
pai
commit
ee6cf96e2c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      apps/app/src/components/PageHeader/PageTitleHeader.tsx

+ 1 - 1
apps/app/src/components/PageHeader/PageTitleHeader.tsx

@@ -24,7 +24,7 @@ export const PageTitleHeader: FC<Props> = (props) => {
     return (
       <div onClick={() => setRenameInputShown(true)}>{pageName}</div>
     );
-  }, []);
+  }, [pageName]);
 
   return (
     <TextInputForPageTitleAndPath