Next.js loading.js Not Overlaying - Previous UI Disappears on Navigation
Unanswered
Tomistoma posted this in #help-forum
TomistomaOP
Hey everyone, I'm running into a very strange issue with the App Router's loading.js file and I'm completely stuck. I would appreciate any help you can offer!
The Goal:
When navigating between pages, the loading.js component should appear as an overlay on top of the previous page's content.
The Problem:
Instead, the previous page's content disappears completely, and the loader appears on a solid white/gray background. This happens on every navigation.
The Goal:
When navigating between pages, the loading.js component should appear as an overlay on top of the previous page's content.
The Problem:
Instead, the previous page's content disappears completely, and the loader appears on a solid white/gray background. This happens on every navigation.