mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
fix(phone): remove Nui deps from useEffect
This commit is contained in:
1 parent
6a46711a51
commit
8861f4e503
2 files changed
+2
-2
No files matched your search
@@ -23,7 +23,7 @@ export const MatchApp = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
Nui.send(MatchEvents.INITIALIZE);
|
Nui.send(MatchEvents.INITIALIZE);
|
||||||
}, [Nui]);
|
}, []);
|
||||||
|
|
||||||
const handlePageChange = (e, page) => setActivePage(page);
|
const handlePageChange = (e, page) => setActivePage(page);
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export function TweetListContainer() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
Nui.send(TwitterEvents.FETCH_TWEETS, {});
|
Nui.send(TwitterEvents.FETCH_TWEETS, {});
|
||||||
}, [Nui]);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (tweets?.length) {
|
if (tweets?.length) {
|
||||||
|
|||||||
Reference in new issue
Block a user