Navigation takes a few second up to a minute in production builds #84370
Unanswered
RemcoSmitsDev
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
We have a dashboard application in next(15.5.4) that fetches data from an API that takes around 100ms.
We have a few buttons (next/link) that update the current URL only with a get parameter called start. Like so:
When we navigate using this link inside production builds, we see in our backend that the request already completed to fetch the needed data, but the page does not update. The strange thing is, it sometimes takes a few seconds or even a minute just to re-render/update the current UI. The UI is not complicated, it just a table that displays the raw data.
The strange thing is this does not happen all the time, sometimes it updates directly after the API fetch is done (like we see in dev builds).
We use the app router and our route structure is:
My question is: What happens here, and how could we fix this? Unfortunately, I can't share the project as it's an internal project. I'm also not able to reproduce this in a clean/new next app.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions