Browse Source

add comment

jam411 3 years ago
parent
commit
1db7913271
1 changed files with 3 additions and 1 deletions
  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 = () => {