From 8861f4e5034b1b137e3a2de78762e25a81509a1c Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 18 Apr 2021 21:37:47 +0200 Subject: [PATCH] fix(phone): remove Nui deps from useEffect --- phone/src/apps/match/components/MatchApp.tsx | 2 +- phone/src/apps/twitter/components/tweet/TweetListContainer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phone/src/apps/match/components/MatchApp.tsx b/phone/src/apps/match/components/MatchApp.tsx index 63385c9..55872bc 100644 --- a/phone/src/apps/match/components/MatchApp.tsx +++ b/phone/src/apps/match/components/MatchApp.tsx @@ -23,7 +23,7 @@ export const MatchApp = () => { useEffect(() => { Nui.send(MatchEvents.INITIALIZE); - }, [Nui]); + }, []); const handlePageChange = (e, page) => setActivePage(page); diff --git a/phone/src/apps/twitter/components/tweet/TweetListContainer.tsx b/phone/src/apps/twitter/components/tweet/TweetListContainer.tsx index 1cc44b4..8a168ef 100644 --- a/phone/src/apps/twitter/components/tweet/TweetListContainer.tsx +++ b/phone/src/apps/twitter/components/tweet/TweetListContainer.tsx @@ -12,7 +12,7 @@ export function TweetListContainer() { useEffect(() => { Nui.send(TwitterEvents.FETCH_TWEETS, {}); - }, [Nui]); + }, []); useEffect(() => { if (tweets?.length) {