DEV Community

loading...

Discussion on: Debugging Your React App

Collapse
omril321 profile image
Omri Lavi

Thank you for these great advices!
Do you have any specific tips for debugging hooks? For example:

  • A useEffect hooks isn't being called as expected (too many times, or isn't being called when expected)
  • A useCallback has the wrong closure when being called

Sometimes I struggle with these types of debugging