19
Spent 3 hours debugging a React app because I forgot a single closing bracket in a useEffect dependency array
Has anyone else spent way too long hunting down a stupid syntax error that was just one character off?
2 comments
Log in to join the discussion
Log In2 Comments
finley_harris522d agoTop Commenter
A whole evening just for a missing comma? Bro that hurts just reading it, I would've rage quit like 2 hours in.
7
grant.jade22d ago
Agree 100%, this is way too relatable honestly. I once spent a whole evening trying to figure out why a component kept re-rendering in an infinite loop. Turns out I forgot a comma in a dependency list and it was just looping over itself forever. Ngl, I almost threw my laptop out the window when I finally spotted it. Tbh those tiny mistakes feel like they're designed to ruin your whole day.
2