diff --git a/static-site/.eslintrc.yaml b/static-site/.eslintrc.yaml index 22246ad3c..8616a9fec 100644 --- a/static-site/.eslintrc.yaml +++ b/static-site/.eslintrc.yaml @@ -14,7 +14,6 @@ ignorePatterns: rules: react/prop-types: off - react-hooks/exhaustive-deps: off parserOptions: sourceType: module diff --git a/static-site/src/components/Groups/edit-logo-form.jsx b/static-site/src/components/Groups/edit-logo-form.jsx index 3db977196..b3662c642 100644 --- a/static-site/src/components/Groups/edit-logo-form.jsx +++ b/static-site/src/components/Groups/edit-logo-form.jsx @@ -19,6 +19,12 @@ const EditLogoForm = ({ groupName, createErrorMessage, clearErrorMessage }) => { let cleanUp = false; setCurrentLogo(); return () => cleanUp = true; + + // FIXME: Figure out what to do with getGroupLogo. If it's added to the + // dependency list, this will get run on every render. It also can't be + // trivially moved outside of the component because it needs + // createErrorMessage and clearErrorMessage. + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); const getGroupLogo = async () => {