'npx next dev' - dev server - gets stuck on when rendering page... sometimes
Unanswered
Japanese common catfish posted this in #help-forum
Japanese common catfishOP
I have this application with some pages using next-auth, etc.
Sometimes, usually after 3-4 reloads, the page stops rendering and gets stuck on loading until the browser says it doesn't respond anymore.
If I look in the console, no error shows up and everything works sometimes, until it doesn't completely at random.
Sometimes, usually after 3-4 reloads, the page stops rendering and gets stuck on loading until the browser says it doesn't respond anymore.
If I look in the console, no error shows up and everything works sometimes, until it doesn't completely at random.
const session = await getCurrentUser(); // this function is triggered
if (!session?.user) redirect("/");
console.log(session.user.email) // this is sent in console
// page doesn't render...
return (
<div className="min-h-screen bg-white">
<div className="px-64">
<h1>{session.user.email}</h1>
<h1>{session.user.name}</h1>
<h1>{session.user.role}</h1>
</div>
</div>
)1 Reply
Japanese common catfishOP
Found this to be when changes have been made and it's recompiled, rather than at random.