Is it normal to not have any loading when a page fetches
Unanswered
Western Meadowlark posted this in #help-forum
Western MeadowlarkOP
Next.js newbie here
I was following the Dashboard app in the Next Learn docs and completed it
The final deployed version is
https://nextjs-dashboard-git-timeout-cmgchess.vercel.app/login?_vercel_share=L1gmkiY4vs4PB2tm13Xk2ECibF8Lon3M&callbackUrl=https%3A%2F%2Fnextjs-dashboard-git-timeout-cmgchess.vercel.app%2Fdashboard
Only difference is I added a timeout of 5 seconds in the invoices page.tsx to fake a slow retrieve
email - user@nextmail.com , pw - 123456
When switching from Home to Invoices in the Navbar the timeout is run for 5 seconds and then only it navigates to the invoices route and render. From the client side how do i do an indication that it is loading
I also tried adding the timeout to the dashboard page
https://nextjs-dashboard-git-dashboard-to-cmgchess.vercel.app/dashboard/invoices?_vercel_share=KkBSpQqmfe1D9XFLmq2N0aUVOM1VpPUW
but here I cannot reproduce the earlier behavior. Here I'm redirected immediately to the dashboard route (say I come from Invoices page) and can see the dashboard skeleton components
Thanks
I was following the Dashboard app in the Next Learn docs and completed it
The final deployed version is
https://nextjs-dashboard-git-timeout-cmgchess.vercel.app/login?_vercel_share=L1gmkiY4vs4PB2tm13Xk2ECibF8Lon3M&callbackUrl=https%3A%2F%2Fnextjs-dashboard-git-timeout-cmgchess.vercel.app%2Fdashboard
Only difference is I added a timeout of 5 seconds in the invoices page.tsx to fake a slow retrieve
email - user@nextmail.com , pw - 123456
When switching from Home to Invoices in the Navbar the timeout is run for 5 seconds and then only it navigates to the invoices route and render. From the client side how do i do an indication that it is loading
I also tried adding the timeout to the dashboard page
https://nextjs-dashboard-git-dashboard-to-cmgchess.vercel.app/dashboard/invoices?_vercel_share=KkBSpQqmfe1D9XFLmq2N0aUVOM1VpPUW
but here I cannot reproduce the earlier behavior. Here I'm redirected immediately to the dashboard route (say I come from Invoices page) and can see the dashboard skeleton components
Thanks