Repository navigation
How to make a <Link /> show the fallback page immediately while it's building with getStaticProps? #20320
Unanswered
danielcolinjames
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I thought that's how
fallback: truewould work, but it appears to only work if you land on that page as a new request, rather than navigating to it from another page.Would it be possible to have Next show the
fallback: trueversion of the page when navigating to it with a<Link />? Or is there another way to accomplish this functionality? I just want all the benefits ofgetStaticProps/getStaticPathswhile still allowing users to see a skeleton loading screen instead of no visual feedback for several seconds when clicking to a new page that uses a dynamic route.I found a few people with the same issue, and it sounds like something that would be really awesome if it could be built into Next somehow: #13751 (comment)
Would love to hear anyone's thoughts on this!
All reactions