Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
20 replies
Çağlar

What is the best practice for unstable_getServerSession()?

What is the best practice for unstable_getServerSession()? Should I get the data using getServerSideProps in a layout and do a state drill? Or return the data with unstable_getServerSession() in getServerSideProps for each component it needs?
Was this page helpful?