Next does tons of magic, but you cannot control it. It controls you.

The more I use it, the more I feel like I need to constantly fight Next.js - there’s tons of magic, but you cannot control it. It controls you.
This one will be long and it will sound like a rant. And it might actually be.
The Context: Static pages with user session indicator (logged in or not). Cookies to keep track of user state. Login/logout - update indicator. As simple as that. No rocket science.
The Problem: Next’s Client Router caches too aggressively and you have no control!
The Frustration: What really bothers me is… why? Why there are half-baked tools which have tremendous power you have no control over? Why there’s always a weird workaround that I need to search for? Why would you drive people your way without listening to feedback? Why are we accepting this at all? It.s a heartfelt, sad and exhausted… why?
read full log











