Skip to content

Commit

Permalink
fix(hooks): add missing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Thuan Vo committed Oct 12, 2022
1 parent 591a498 commit c04daa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Archives/Archives.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const Archives: React.FunctionComponent<ArchivesProps> = () => {

React.useEffect(() => {
addSubscription(context.api.isArchiveEnabled().subscribe(setArchiveEnabled));
}, [context.api]);
}, [context.api, addSubscription, setArchiveEnabled]);

const cardBody = React.useMemo(() => {
return archiveEnabled ? (
Expand Down

0 comments on commit c04daa1

Please sign in to comment.