Sesse
Sesse
TTCTheo's Typesafe Cult
Created by Sesse on 10/22/2023 in #questions
Update child client component on change in props passed from parent server component
I have a server component which asynchronously gets a next-auth user session using getServerSession. This session is then passed to a child component (client component). However, whenever session state changes (i.e. logged-in | logged-out), the child component is not updated. Does anyone know a good solution to this? Currently, I need to refresh the entire page...
4 replies