Next.js Discord

Discord Forum

Why My Next Project Delay When Navigate To Others Page?

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP

6 Replies

this is common in dev mode
If you're fetching data in pages, add a loading.tsx to show a loader
Barbary LionOP
thank you :noice:
@Yi Lon Ma If you're fetching data in pages, add a loading.tsx to show a loader
Florida White
I have a suspense around my children in the layout. But the loading only appears when reloading the page, not when switching the page.

Thought to add a pagination or infinite scroll on pages where a lot of data is fetched. Is there a better way to fix it?
@Yi Lon Ma please create your own thread
Florida White
Okay, done. Saw this and thought I could add some :shrug: