Next.js Discord

Discord Forum

My `not-found.tsx` is stuck in an infinite rerender. How can I solve this?

Unanswered
Balinese posted this in #help-forum
Open in Discord
Avatar
BalineseOP
I've created a not-found.tsx file in my root app folder. When I navigate to no-existent routes, my custom not-found page kicks in. But it keeps re-rendering and reloading the page. How can I mitigate this rerendering behavior?

6 Replies

Avatar
joulev
is it an async component? can you make a repro repo
Avatar
BalineseOP
It seems to only happen on dev. I just made a build and it appears to be stable. 😄
Avatar
joulev
hmm then you probably want to submit a bug report
it smells like a bug
Avatar
Giant panda
I had this issue too, locally in dev mode it reloads the page over and over
Avatar
joulev
seems like many people have this issue, but i can't reproduce it in dev mode (13.4.8-canary.7). could you make a repro repo?