MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/illwv0/deleted_by_user/g63de35/?context=3
r/reactjs • u/[deleted] • Sep 03 '20
[removed]
255 comments sorted by
View all comments
Show parent comment
1
Post some code so we can help. If your effect is dependent on both long and lat as individual variables like this: }, [long, lat]);
and each has its own useState(), you'll get one execution for each setter.
View all comments
Show parent comment
1
u/Awnry_Abe Sep 21 '20
Post some code so we can help. If your effect is dependent on both long and lat as individual variables like this: }, [long, lat]);
and each has its own useState(), you'll get one execution for each setter.