Next.js Discord

Discord Forum

Next.js App Router delay during navigation

Unanswered
Porcelaine posted this in #help-forum
Open in Discord
PorcelaineOP
next.js 13 There is a delay when the route jumps to the page. What is the reason?

6 Replies

@Porcelaine next.js 13 There is a delay when the route jumps to the page. What is the reason?
because that route is dynamically rendered (so the data fetching etc is done at request time)
you can use [Loading UI and Streaming](https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming) to add instant loading states
@joulev because that route is dynamically rendered (so the data fetching etc is done at request time)
PorcelaineOP
My app keeps reporting this error
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
shut down the dev server, shut down some other RAM-intensive apps (e.g.: discord), then try again