JavaScript Reference Equality Confusion
(Cool) Dev
Join the Community
Jo
Jozhe
路
5 years ago
shared a media post in group
#(Cool) Dev
JS 馃ゲ
聽
Jozhe
Biggest problem is, if you use array in useEffect as a dependency for an update, it will trigger every-time, no matter whether array changed
Jozhe
Because essentially it does === operation
Embed post to a webpage :
<div data-postid="abmr" [...] </div>
Powered by
Select
路
iOS
路
Android
Privacy
|
Terms
|
Cookie Preferences
Join the Community