jam411 3 лет назад
Родитель
Сommit
1db7913271
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      packages/app/src/components/Fab.tsx

+ 3 - 1
packages/app/src/components/Fab.tsx

@@ -61,6 +61,7 @@ export const Fab = (): JSX.Element => {
     };
   }, [stickyChangeHandler]);
 
+  // TODO: Flickering occurs when moving page if "currentPath" or "openCreateModal" is set to useCallback dependencies.
   const PageCreateButton = useCallback(() => {
     return (
       <div className={`rounded-circle position-absolute ${animateClasses}`} style={{ bottom: '2.3rem', right: '4rem' }}>
@@ -76,7 +77,8 @@ export const Fab = (): JSX.Element => {
         </button>
       </div>
     );
-  }, [animateClasses, buttonClasses, currentPath, openCreateModal]);
+  // eslint-disable-next-line react-hooks/exhaustive-deps
+  }, [animateClasses, buttonClasses]); // , currentPath, openCreateModal]);
 
   const ScrollToTopButton = useCallback(() => {
     const clickHandler = () => {