Join Nostr
2025-04-16 02:09:26 UTC
in reply to

Di on Nostr: Awesome. That's the stuff! My all-time favourite use of bisect was finding an ...

Awesome. That's the stuff!

My all-time favourite use of bisect was finding an extremely subtle bug caused by 1-line change to a messy React Mapbox component. I had removed a ref as a dependency in a useEffect hook. The linter had reminded me that mutable values such as refs are invalid deps because they don't cause renders. Changing that line should have had no impact but it did! Doubt I would have worked out the problem without bisect.

This also reminds me of the value of small commits!