Overfetch trending topics before filtering (#11477)

This commit is contained in:
DS Boyce
2026-08-24 11:39:46 -07:00
committed by GitHub
parent 6009e61ae9
commit 6f46927c28
5 changed files with 14 additions and 169 deletions
-7
View File
@@ -62,7 +62,6 @@ import {
PostFeedVideoGridRowPlaceholder,
} from '#/components/feeds/PostFeedVideoGridRow'
import {FeedTrendingTopicsInterstitial} from '#/components/interstitials/FeedTrendingTopics'
import {TrendingInterstitial} from '#/components/interstitials/Trending'
import {TrendingVideos as TrendingVideosInterstitial} from '#/components/interstitials/TrendingVideos'
import {isStandardSiteEmbed} from '#/components/Post/Embed/StandardSiteEmbed/utils'
import {RichText} from '#/components/RichText'
@@ -146,10 +145,6 @@ type FeedRow =
type: 'interstitialProgressGuide'
key: string
}
| {
type: 'interstitialTrending'
key: string
}
| {
type: 'interstitialFeedTrendingTopics'
key: string
@@ -853,8 +848,6 @@ let PostFeed = ({
return <ProgressGuide />
} else if (row.type === 'ageAssuranceBanner') {
return <AgeAssuranceDismissibleFeedBanner />
} else if (row.type === 'interstitialTrending') {
return <TrendingInterstitial />
} else if (row.type === 'interstitialFeedTrendingTopics') {
return (
<FeedTrendingTopicsInterstitial feedSliceIndex={row.feedSliceIndex} />
@@ -46,7 +46,6 @@ function Inner() {
error,
isLoading,
} = useGetTrendsQuery({
limit: DEFAULT_LIMIT,
refetchOnWindowFocus: true,
})
const noTopics = !isLoading && !error && !trending?.trends?.length