From e5f5bdb95c62eba31a3321a7457d354f0226bf85 Mon Sep 17 00:00:00 2001 From: sct Date: Tue, 9 Mar 2021 10:22:33 +0000 Subject: [PATCH] fix(frontend): check if swr is validating to determine if we should fetch new data fixes #719 --- src/components/Common/ListView/index.tsx | 4 +- .../MovieDetails/MovieRecommendations.tsx | 65 ++++-------------- src/components/MovieDetails/MovieSimilar.tsx | 65 ++++-------------- src/components/Search/index.tsx | 57 ++++------------ .../TvDetails/TvRecommendations.tsx | 65 ++++-------------- src/components/TvDetails/TvSimilar.tsx | 67 ++++--------------- src/hooks/useDiscover.ts | 7 +- 7 files changed, 75 insertions(+), 255 deletions(-) diff --git a/src/components/Common/ListView/index.tsx b/src/components/Common/ListView/index.tsx index 5b3b0bc3b..946f4f8fd 100644 --- a/src/components/Common/ListView/index.tsx +++ b/src/components/Common/ListView/index.tsx @@ -38,7 +38,7 @@ const ListView: React.FC = ({ )}