I am seeking help with nextjs routing.
We have an application, with nextjs 12 and swr 1.3. For some reason, after 1-2 clicks, our routing seems to get stuck, only loading after we do a hard refresh.
We have 5 pages in the pages folder, and a couple api routes.
So far, we have tried debugging if there are any hanging requests, but we haven't found anything so far.
We also tried using profiler, and the inbuilt performance tool (chrome), but when the routing is stuck, these tools don't provide any data.
Sometimes it gets stuck after 1-2 clicks, sometimes after 7-8.
Does anybody have an idea on the cause?
Thanks, Peter