Closed harrisonratcliffe closed 1 year ago
Yep, if you read the value of the authenticated
variable in the SanctumContext, you can check if it's null
. Put an if statement around the parts you want wait to render with a check if this variable is null.
Is there any way for the user data to be fetched before the page loads? I've got the users name on the homepage and its briefly undefined until the page finishes loading.