mirror of
https://github.com/dergigi/boris.git
synced 2026-01-22 00:04:30 +01:00
fix: re-derive reads/links when bookmarks change
- Add bookmarks to useEffect dependencies that load tab data - Reads tab now updates when bookmarks are loaded/updated - Fixes 'No articles ready yet' disappearing when switching tabs - Ensures reads are always derived from current bookmark state - Re-renders Reads tab whenever bookmarks change
This commit is contained in:
@@ -348,7 +348,7 @@ const Me: React.FC<MeProps> = ({
|
||||
break
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [activeTab, viewingPubkey, refreshTrigger])
|
||||
}, [activeTab, viewingPubkey, refreshTrigger, bookmarks])
|
||||
|
||||
// Sync myHighlights from controller
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user