Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Remove duplicate API call + explicitly set loading state

Gabe Kangasce4c29c4e730
diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx
index 2945a1fb8a..d2bd9ccee6 100644
--- a/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx
+++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx
@@ -29,23 +29,16 @@ export const FollowerCollection: FC<FollowerCollectionProps> = ({ name, onFollow
setFollowers(results);
setTotal(totalResults);
+ setLoading(false);
} catch (error) {
console.error(error);
}
};
- useEffect(() => {
- getFollowers();
- }, []);
-
useEffect(() => {
getFollowers();
}, [page]);
- useEffect(() => {
- setLoading(false);
- }, [followers]);
-
const noFollowers = (
<div className={styles.noFollowers} id="followers-collection">
<h2>Be the first follower!</h2>