From 149e3b1b1789f8807b8ece2b986fd29ef0f174ed Mon Sep 17 00:00:00 2001 From: Gauvain Date: Mon, 15 Jun 2026 01:01:38 +0200 Subject: [PATCH] fix(hooks): correct useMemo dependency arrays (#1626) --- components/TrackSheet.tsx | 2 +- components/library/LibraryItemCard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/TrackSheet.tsx b/components/TrackSheet.tsx index 57e4a029..52735f6f 100644 --- a/components/TrackSheet.tsx +++ b/components/TrackSheet.tsx @@ -26,7 +26,7 @@ export const TrackSheet: React.FC = ({ const streams = useMemo( () => source?.MediaStreams?.filter((x) => x.Type === streamType), - [source], + [source, streamType], ); const selectedSteam = useMemo( diff --git a/components/library/LibraryItemCard.tsx b/components/library/LibraryItemCard.tsx index 09de500d..c84364ce 100644 --- a/components/library/LibraryItemCard.tsx +++ b/components/library/LibraryItemCard.tsx @@ -51,7 +51,7 @@ export const LibraryItemCard: React.FC = ({ library, ...props }) => { api, item: library, }), - [library], + [api, library], ); const itemType = useMemo(() => {