fix: type error (#4484)

This commit is contained in:
Whitewater 2025-09-16 02:26:12 +08:00 committed by GitHub
parent 6eb2c5e64f
commit 83f1035a21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import type { FeedViewType } from "@follow/constants"
import { FeedViewType } from "@follow/constants"
import { useCollectionEntryList } from "@follow/store/collection/hooks"
import {
useEntryIdsByFeedId,
@ -31,7 +31,7 @@ function getEntryIdsFromMultiplePlace(...entryIds: Array<string[] | undefined |
export const useLocalEntries = ({
feedId,
view,
view = FeedViewType.All,
inboxId,
listId,
isCollection,
@ -121,7 +121,7 @@ export const useLocalEntries = ({
const debouncedFetch = debounce(() => {
setPage((prev) => prev + 1)
}, 300)
return debouncedFetch()
debouncedFetch()
}, [])
useEffect(() => {
@ -133,7 +133,7 @@ export const useLocalEntries = ({
hasNext,
hasUpdate: false,
refetch,
fetchNextPage: fetchNextPage as () => Promise<void>,
fetchNextPage,
isLoading: false,
isRefetching: false,
isReady: true,