Skip to content

Commit

Permalink
feat: refresh unread data in entries refresh action
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Sep 8, 2024
1 parent aa415f4 commit 31dfbd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/src/modules/entry-column/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useAuthQuery } from "@renderer/hooks/common"
import { entries, useEntries } from "@renderer/queries/entries"
import { entryActions, useEntryIdsByFeedIdOrView } from "@renderer/store/entry"
import { useFolderFeedsByFeedId } from "@renderer/store/subscription"
import { feedUnreadActions } from "@renderer/store/unread"
import { useCallback, useEffect, useMemo, useRef, useState } from "react"
import type { ListRange } from "react-virtuoso"
import { useDebounceCallback } from "usehooks-ts"
Expand Down Expand Up @@ -201,6 +202,7 @@ export const useEntriesByView = ({
hasUpdate,
refetch: useCallback(() => {
query.refetch()
feedUnreadActions.fetchUnreadByView(view)
}, [query]),
entriesIds: sortEntries,
groupedCounts,
Expand Down

0 comments on commit 31dfbd8

Please sign in to comment.