From 24722ecaf3d8389832153e75226fe55bb9cbde95 Mon Sep 17 00:00:00 2001 From: Sandra Hoang Date: Wed, 29 Oct 2025 16:02:29 -0400 Subject: [PATCH 1/3] remove fileUpload dep in useEffect --- src/hooks/stac-value.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/stac-value.ts b/src/hooks/stac-value.ts index 28678ff..96d97e2 100644 --- a/src/hooks/stac-value.ts +++ b/src/hooks/stac-value.ts @@ -43,7 +43,7 @@ export default function useStacValue({ setConnection(connection); })(); } - }, [db, href, fileUpload]); + }, [db, href]); const jsonResult = useQuery({ queryKey: ["stac-value", href], From 3fa10c9211d57b14bce6f68942c256950092f136 Mon Sep 17 00:00:00 2001 From: Sandra Hoang Date: Wed, 29 Oct 2025 16:19:42 -0400 Subject: [PATCH 2/3] ignore lint --- src/hooks/stac-value.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/stac-value.ts b/src/hooks/stac-value.ts index 96d97e2..023d505 100644 --- a/src/hooks/stac-value.ts +++ b/src/hooks/stac-value.ts @@ -43,6 +43,7 @@ export default function useStacValue({ setConnection(connection); })(); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [db, href]); const jsonResult = useQuery({ From ae9b23ff796a9964c228b8b577e52892cdddf9c9 Mon Sep 17 00:00:00 2001 From: Sandra Hoang Date: Thu, 30 Oct 2025 12:03:33 -0400 Subject: [PATCH 3/3] add dependecny --- src/hooks/stac-value.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hooks/stac-value.ts b/src/hooks/stac-value.ts index 023d505..86aec8c 100644 --- a/src/hooks/stac-value.ts +++ b/src/hooks/stac-value.ts @@ -43,8 +43,7 @@ export default function useStacValue({ setConnection(connection); })(); } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [db, href]); + }, [db, href, fileUpload.acceptedFiles]); const jsonResult = useQuery({ queryKey: ["stac-value", href],