I am currently working on a website that has its data stored in firestore. The website needs good SEO, so I chose to use Next.js. However, when a use clicks a link, it will take 1-2 seconds for the server to get the data from firebase. This is a bad user experience, because the user has no way of knowing that the page is actually loading.
How would you send an "App shell" (Page with no data), before getting the data from getServerSideProps
?
question from:
https://stackoverflow.com/questions/65889286/next-js-with-firebase-ssr-and-sso 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…