u/Proof-Possible-5305

What finally got the strict mode double fetch out of your way in dev?

I'm building an internal dashboard on Vite and React 19, and every fetch inside a useEffect fires twice in dev. I know it's intentional and that it doesn't happen in the production build, so I'm not looking to switch strict mode off. The problem is that our API rate limits on a per minute window and I get locked out for a couple of minutes maybe a third of the sessions i work in.

How did you get past this without moving every call into a data fetching library?

reddit.com
u/Proof-Possible-5305 — 8 hours ago