Next.js Discord

Discord Forum

Stuck at loading on Vercel production built

Unanswered
phantomkr posted this in #help-forum
Open in Discord
Hello everyone,

I'm encountering an issue with my Next.js application. When I navigate back to a page for the second time, the page gets stuck in the loading state (loading.tsx), even though it should be cached and not need to load again. However, if I refresh the page, it loads the page normally.

This issue only occurs in the production deployment and not when I'm testing locally. I'm wondering if setting SSR: false for dynamic rendering could be causing this problem. Additionally, I'm using useQuery with hydration in my Next.js application.

Any help or insights into resolving this issue would be greatly appreciated.

1 Reply

guys, please help :fine: