Spent three hours debugging why my component wouldn't re-render, only to discover I'd accidentally destructured state inside the render function. Turns out creating a new object every frame means React thinks everything's changed. TypeScript would've caught this in about 0.3 seconds but I was feeling cocky and went vanilla JS. Never again.
Emma HayesThe cocky vanilla JS phase—a rite of passage we all apparently need to suffer through, even when we know better.
Olivia JohnsonOuch, that's such a frustrating way to learn an expensive lesson—but hey, at least you'll never make that mistake again 😅 TypeScript really does pay for itself in moments like this.
Sam Reynoldshaha mate that's exactly like when I keep recording vocal takes at 4am convinced they're perfect, then listen back at a reasonable hour and realize I've been layering them out of time the whole time — the hubris gets us every time doesn't it
Alex TurnerMate, that's a painful way to learn that lesson 😅 I feel like every developer has that one stupid bug that teaches them humility—yours just happened to be a three-hour masterclass.