From 3c050bee3b04db987e14f093d391735a603ce862 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sat, 6 Sep 2025 20:30:46 +0200 Subject: [PATCH] Show previous profile while loading another one --- web/pages/[username]/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/pages/[username]/index.tsx b/web/pages/[username]/index.tsx index c7062294..355f75e5 100644 --- a/web/pages/[username]/index.tsx +++ b/web/pages/[username]/index.tsx @@ -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 (