Next.js Discord

Discord Forum

So Nextjs 15+ doesnt call fetches twice in dev, but Nextjs 14- does?

Unanswered
Greenish Elaenia posted this in #help-forum
Open in Discord
Avatar
Greenish ElaeniaOP
I'm currently on 14.2.4 and always found the calling API endpoints twice incredibly annoying because it creates buggy behavior when 3rd party endpoints require idempotency.
Is there a way to turn it off on vers 14?
Is it defaulted to turned off on vers 15?
Does vers 15 support not doing this?

2 Replies

Avatar
I’m not sure if this behavior has been changed in Next 15, but if it bothers you in Next 14, setting the reactStrictMode flag to false in next.config should solve your problem.
Avatar
Greenish ElaeniaOP
Appreciate the tip Ill try that