Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
347 views
in Technique[技术] by (71.8m points)

reactjs - Next.js with firebase: SSR and SSO

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...