From d4be782b9cae66ba100fe9bdc3042f796857b4b4 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 10 Jul 2024 10:22:14 +0530 Subject: [PATCH] Silence a warning to avoid changing behaviour for now --- web/packages/new/photos/components/PeopleList.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/packages/new/photos/components/PeopleList.tsx b/web/packages/new/photos/components/PeopleList.tsx index 964f93a9f6..7b9a1369a0 100644 --- a/web/packages/new/photos/components/PeopleList.tsx +++ b/web/packages/new/photos/components/PeopleList.tsx @@ -152,6 +152,9 @@ const FaceCropImageView: React.FC = ({ faceID }) => { didCancel = true; if (objectURL) URL.revokeObjectURL(objectURL); }; + // TODO: The linter warning is actually correct, objectURL should be a + // dependency, but adding that require reworking this code first. + // eslint-disable-next-line react-hooks/exhaustive-deps }, [faceID]); return objectURL ? (