diff --git a/apps/mobile/src/modules/discover/Recommendations.tsx b/apps/mobile/src/modules/discover/Recommendations.tsx index 2ccb9779b..aa0c1a455 100644 --- a/apps/mobile/src/modules/discover/Recommendations.tsx +++ b/apps/mobile/src/modules/discover/Recommendations.tsx @@ -135,7 +135,7 @@ export const RecommendationTab: TabComponent<{ staleTime: 1000 * 60 * 60 * 24, // 1 day }) - const { data: analysisData } = useQuery({ + const { data: analysisData, isLoading: isAnalysisLoading } = useQuery({ queryKey: ["rsshub-analysis", "cache", discoverLanguage], queryFn: () => fetchRsshubAnalysis(LanguageMap[discoverLanguage]).then((res) => res.data), staleTime: 1000 * 60 * 60 * 24, // 1 day @@ -228,7 +228,7 @@ export const RecommendationTab: TabComponent<{ const insets = useSafeAreaInsets() - if (isLoading) { + if (isLoading || isAnalysisLoading) { return } diff --git a/apps/mobile/src/modules/discover/Trending.tsx b/apps/mobile/src/modules/discover/Trending.tsx index 8bf46668b..3b30650ef 100644 --- a/apps/mobile/src/modules/discover/Trending.tsx +++ b/apps/mobile/src/modules/discover/Trending.tsx @@ -9,6 +9,7 @@ import { ItemPressableStyle } from "@/src/components/ui/pressable/enum" import { ItemPressable } from "@/src/components/ui/pressable/ItemPressable" import { FilterCuteReIcon } from "@/src/icons/filter_cute_re" import { TrendingUpCuteReIcon } from "@/src/icons/trending_up_cute_re" +import { User3CuteReIcon } from "@/src/icons/user_3_cute_re" import { useNavigation } from "@/src/lib/navigation/hooks" import { DiscoverSettingsScreen } from "@/src/screens/(modal)/DiscoverSettingsScreen" @@ -83,7 +84,12 @@ export const Trending = ({ } - /> + > + + + {item.analytics.subscriptionCount} + + )) )} diff --git a/apps/mobile/src/modules/feed/FollowFeed.tsx b/apps/mobile/src/modules/feed/FollowFeed.tsx index 12cf90dad..b192d9e51 100644 --- a/apps/mobile/src/modules/feed/FollowFeed.tsx +++ b/apps/mobile/src/modules/feed/FollowFeed.tsx @@ -41,7 +41,9 @@ const formSchema = z.object({ export function FollowFeed(props: { id: string }) { const { id } = props const feed = useFeed(id as string) - usePrefetchFeed(id as string) + usePrefetchFeed(id as string, { + enabled: !feed?.subscriptionCount, + }) if (!feed) { return (