fix(frontend): key RemoteUserProfile and Tabs by actor/user id to reset state on navigation
This commit is contained in:
@@ -265,7 +265,7 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
|
||||
id="profile-card__thoughts"
|
||||
className="col-span-1 lg:col-span-3 space-y-4"
|
||||
>
|
||||
<Tabs defaultValue="thoughts">
|
||||
<Tabs key={user.id.toString()} defaultValue="thoughts">
|
||||
<TabsList className="mb-4">
|
||||
<TabsTrigger value="thoughts">Thoughts</TabsTrigger>
|
||||
{isOwnProfile && (
|
||||
|
||||
Reference in New Issue
Block a user