Next.js Discord

Discord Forum

Next.js App Router delay during navigation

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

6 Replies

Avatar
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
Avatar
PorcelaineOP
thanks let me take a look
My app keeps reporting this error
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Image
Avatar
this is because your computer runs out of RAM
shut down the dev server, shut down some other RAM-intensive apps (e.g.: discord), then try again