Returns the signed-in user, or null while signed out.
null
Suspends until Dashboard publishes the current user.
function CurrentUser() { const user = useCurrentUser() return <span>{user?.name ?? 'Signed out'}</span>} Copy
function CurrentUser() { const user = useCurrentUser() return <span>{user?.name ?? 'Signed out'}</span>}
Returns the signed-in user, or
nullwhile signed out.Suspends until Dashboard publishes the current user.