Loading.tsx only shows briefly during long RSC data fetch
Unanswered
European sprat posted this in #help-forum
European spratOP
I'm having an issue where navigating to a app dir page seems to send two requests to the server.
As an RSC, when navigating to the page, it fetches data from the server that can take some time. During that fetch time, I expect the loading.tsx to display. However, when the two requests are sent, the loading.tsx is displayed for a split second, then the page is displayed (without the data we're waiting for) and, finally, when looking at the network requests, I can see the first request finish.
In the example video, on the final page (Step 5/Article) you can see the two network requests, the blank page which appears after a moment and the time updating for the first request (after the server has finished the long fetch).
https://www.youtube.com/watch?v=2nhfllPsSUE
As an RSC, when navigating to the page, it fetches data from the server that can take some time. During that fetch time, I expect the loading.tsx to display. However, when the two requests are sent, the loading.tsx is displayed for a split second, then the page is displayed (without the data we're waiting for) and, finally, when looking at the network requests, I can see the first request finish.
In the example video, on the final page (Step 5/Article) you can see the two network requests, the blank page which appears after a moment and the time updating for the first request (after the server has finished the long fetch).
https://www.youtube.com/watch?v=2nhfllPsSUE