Show previous profile while loading another one

This commit is contained in:
MartinBraquet
2025-09-06 20:30:46 +02:00
parent 50be1ba510
commit 3c050bee3b

View File

@@ -115,7 +115,8 @@ function UserPageInner(props: ActiveUserPageProps) {
props.lover && user ? {...props.lover, user: user} : null
)
const {lover: clientLover, refreshLover} = useLoverByUser(user)
const lover = clientLover // ?? staticLover
// Show previous profile while loading another one
const lover = clientLover ?? staticLover
console.log('lover:', user?.username, lover, clientLover, staticLover)
return (