React useEffect Firing Twice in Development: What's Happening and How to Fix It
Your useEffect is running twice on every mount and you have no idea why. It's not a bug in your code β React 18 does this on purpose in development. Here's what's happening and how to handle it correctly.