DEV Community

Discussion on: Why custom react hooks could destroy your app performance

Collapse
 
constantiner profile image
Konstantin Kovalev • Edited

Probably, the only final change you need is to put [] in your useEffect as a second parameter. For me it works fine here codesandbox.io/s/re-renders-bad-wi...