DEV Community

Discussion on: You (probably) don't need that useState + useEffect

Collapse
 
townofdon profile image
Don Juan Javier

Good catch! I think the exhaustive-deps eslint rule used to complain if setter fncs were not included, so I just got into the habit if included everything in the dependency array, but you're absolutely correct (and eslint plugins have gotten a lot better over the years).