diff --git a/apps/mobile/src/modules/entry-list/EntryListContentArticle.tsx b/apps/mobile/src/modules/entry-list/EntryListContentArticle.tsx index 2b29e1e58..4ffc3a3ad 100644 --- a/apps/mobile/src/modules/entry-list/EntryListContentArticle.tsx +++ b/apps/mobile/src/modules/entry-list/EntryListContentArticle.tsx @@ -1,4 +1,4 @@ -import { FeedViewType } from "@follow/constants" +import type { FeedViewType } from "@follow/constants" import type { ListRenderItemInfo } from "@shopify/flash-list" import type { ElementRef } from "react" import { forwardRef, useCallback, useMemo } from "react" @@ -16,8 +16,8 @@ import { EntryNormalItem } from "./templates/EntryNormalItem" export const EntryListContentArticle = forwardRef< ElementRef, - { entryIds: string[] | null; active?: boolean } ->(({ entryIds, active }, ref) => { + { entryIds: string[] | null; active?: boolean; view: FeedViewType } +>(({ entryIds, active, view }, ref) => { const playingAudioUrl = usePlayingUrl() const { fetchNextPage, isFetching, refetch, isRefetching, hasNextPage } = @@ -25,9 +25,9 @@ export const EntryListContentArticle = forwardRef< const renderItem = useCallback( ({ item: id, extraData }: ListRenderItemInfo) => ( - + ), - [], + [view], ) const ListFooterComponent = useMemo( diff --git a/apps/mobile/src/modules/entry-list/EntryListSelector.tsx b/apps/mobile/src/modules/entry-list/EntryListSelector.tsx index e880303fb..81268b7cc 100644 --- a/apps/mobile/src/modules/entry-list/EntryListSelector.tsx +++ b/apps/mobile/src/modules/entry-list/EntryListSelector.tsx @@ -69,7 +69,7 @@ function EntryListSelectorImpl({ entryIds, viewId, active = true }: EntryListSel } }, [isRefetching, ref]) - return + return } export const EntryListSelector = withErrorBoundary(