From e43909be7e8f8b2b5d7b002448912e23e40ad4e9 Mon Sep 17 00:00:00 2001
From: Adam Mathes <adam@adammathes.com>
Date: Fri, 13 Feb 2026 19:28:00 -0800
Subject: fix(ui): sync FeedItem state with props to update read status styling
 (NK-fpzx66)

---
 frontend/src/components/FeedItem.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'frontend/src/components/FeedItem.tsx')

diff --git a/frontend/src/components/FeedItem.tsx b/frontend/src/components/FeedItem.tsx
index 2dcbcb9..b86e60c 100644
--- a/frontend/src/components/FeedItem.tsx
+++ b/frontend/src/components/FeedItem.tsx
@@ -1,4 +1,4 @@
-import { useState } from 'react';
+import { useState, useEffect } from 'react';
 import type { Item } from '../types';
 import './FeedItem.css';
 
@@ -10,6 +10,10 @@ export default function FeedItem({ item: initialItem }: FeedItemProps) {
     const [item, setItem] = useState(initialItem);
     const [loading, setLoading] = useState(false);
 
+    useEffect(() => {
+        setItem(initialItem);
+    }, [initialItem]);
+
 
     const toggleStar = () => {
         updateItem({ ...item, starred: !item.starred });
-- 
cgit v1.2.3

