Nothing happens when clicking on the Next Link
Unanswered
Oak shoot sawfly posted this in #help-forum
Oak shoot sawflyOP
When I click on the next/link component, there is nothing happens for a few seconds. I expect it should navigate immediately.
13 Replies
You need to provide more info if you expect help like some code
Keep in mind that when running in dev mode the pages are built on demand so a delay is expected
Oak shoot sawflyOP
It's not dev mode
Oh okay
Oak shoot sawflyOP
It is served from the production build
in prod if the page you're navigating to is using ssr then check the size of the bundles
the delay may be due to the fact that its a bigger bundle
Oak shoot sawflyOP
yes, however as I understand, it should show the loading (loading.tsx) immediately
and its a cold start time associated with loading that page
Oak shoot sawflyOP
I want to navigate to the pack details
pack/:id, and I have a loading.tsx at rootBased on the Next.js documentation, it should show the loading first and then wait for the bundles
Oak shoot sawflyOP
@linesofcode Do you have any ideas about this issue?