instant loading navigation
Unanswered
Golden northern bumble bee posted this in #help-forum
Golden northern bumble beeOP
Can you only have instant loading navigation if we use the loading.ts files for handling the loading state of the page. I tried just using suspense manually wrapping the component and it did not navigate until await call finihsed (skipping loading ui)
6 Replies
@Golden northern bumble bee Can you only have instant loading navigation if we use the loading.ts files for handling the loading state of the page. I tried just using suspense manually wrapping the component and it did not navigate until await call finihsed (skipping loading ui)
you tried that in dev mode or production mode?
Golden northern bumble beeOP
Dev mode - I also tried using the layout but suspense only renders once there so not good to put in there
@Golden northern bumble bee ?
Golden northern bumble beeOP
@B33fb0n3 https://tarkov-directory.vercel.app
This is the URL to my site, and a screenshot of the build result.
I am using unstable_cache with a 1hr revalidation period on the /guns/[id] page for the data fetch. Otherwise, I do not expliclty change default behavior anywhere else.
All requests to the /guns/[id] page are "MISS", but does this mean the data cache could still be hitting? What does the cache MISS represent (what is being missed)? Is it the full route cache/data cache, etc??
Also - I am seeing a spinner on static pages (like /guns) sometimes - I thought static pages would never get the loading suspense shown. I do expect it on dynamic pages, since rendering is happening.
This is the URL to my site, and a screenshot of the build result.
I am using unstable_cache with a 1hr revalidation period on the /guns/[id] page for the data fetch. Otherwise, I do not expliclty change default behavior anywhere else.
All requests to the /guns/[id] page are "MISS", but does this mean the data cache could still be hitting? What does the cache MISS represent (what is being missed)? Is it the full route cache/data cache, etc??
Also - I am seeing a spinner on static pages (like /guns) sometimes - I thought static pages would never get the loading suspense shown. I do expect it on dynamic pages, since rendering is happening.
Golden northern bumble beeOP
Bump