Skip to content

Commit

Permalink
fix(home): recompute height when favorites or watch history change
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Jun 23, 2021
1 parent 85acb3a commit 39dbcc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screens/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ const Home = (): JSX.Element => {
};

useEffect(() => {
if (watchHistoryLoaded) {
if (favorites || watchHistory) {
((listRef.current as unknown) as List)?.recomputeRowHeights();
}
}, [watchHistoryLoaded]);
}, [favorites, watchHistory]);

return (
<div className={styles.home}>
Expand Down

0 comments on commit 39dbcc9

Please sign in to comment.