Skip to content

Commit

Permalink
fix: cached entries data
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Feb 11, 2025
1 parent 2f1d048 commit a80c248
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/renderer/src/modules/entry-column/hooks/useEntriesByView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,13 @@ export const useEntriesByView = ({

useFetchEntryContentByStream(remoteEntryIds)

const currentEntries = useEntryIdsByFeedIdOrView(isAllFeeds ? view : folderIds || feedId!, {
unread: unreadOnly,
view,
})
const currentEntries = useEntryIdsByFeedIdOrView(
listId || inboxId || (isAllFeeds ? view : folderIds || feedId!),
{
unread: unreadOnly,
view,
},
)

// If remote data is not available, we use the local data, get the local data length
// FIXME: remote first, then local store data
Expand Down

0 comments on commit a80c248

Please sign in to comment.