From c04daa1d9c34af548396972c57cd6db984ea7195 Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Wed, 12 Oct 2022 14:35:21 -0400 Subject: [PATCH] fix(hooks): add missing deps --- src/app/Archives/Archives.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Archives/Archives.tsx b/src/app/Archives/Archives.tsx index 3e067d1019..a084063837 100644 --- a/src/app/Archives/Archives.tsx +++ b/src/app/Archives/Archives.tsx @@ -69,7 +69,7 @@ export const Archives: React.FunctionComponent = () => { React.useEffect(() => { addSubscription(context.api.isArchiveEnabled().subscribe(setArchiveEnabled)); - }, [context.api]); + }, [context.api, addSubscription, setArchiveEnabled]); const cardBody = React.useMemo(() => { return archiveEnabled ? (