diff options
Diffstat (limited to 'src/view/com/notifications/Feed.tsx')
-rw-r--r-- | src/view/com/notifications/Feed.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/notifications/Feed.tsx b/src/view/com/notifications/Feed.tsx index 3daa53ec7..2dac75e3c 100644 --- a/src/view/com/notifications/Feed.tsx +++ b/src/view/com/notifications/Feed.tsx @@ -54,9 +54,12 @@ export function Feed({ // mark all read on fresh data React.useEffect(() => { + let cleanup if (firstItem) { - markAllRead() + const to = setTimeout(() => markAllRead(), 250) + cleanup = () => clearTimeout(to) } + return cleanup }, [firstItem, markAllRead]) const items = React.useMemo(() => { |