fix: cached entries data

This commit is contained in:
DIYgod 2025-02-11 20:27:15 +08:00
parent 2f1d0485f8
commit a80c248194
No known key found for this signature in database
1 changed files with 7 additions and 4 deletions

View File

@ -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