diff options
author | Eric Bailey <git@esb.lol> | 2025-04-08 17:08:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-08 17:08:09 -0500 |
commit | c8568e3004831e76b29e0f710805cb4f1cfc7576 (patch) | |
tree | b09a3d51996a9ed6924520d150786a4b16aeb98f /src/state/queries/explore-feed-previews.tsx | |
parent | 09111ef272f04bbd6a1d7e43f072fdde06133669 (diff) | |
download | voidsky-c8568e3004831e76b29e0f710805cb4f1cfc7576.tar.zst |
[Explore] Reduced experience (#8160)
* Only show suggested users for non-english users * Fall back to searching for users for non-english speakers * Disable other queries if full experience is disabled * Bump package * If no content langs, use full exp
Diffstat (limited to 'src/state/queries/explore-feed-previews.tsx')
-rw-r--r-- | src/state/queries/explore-feed-previews.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/queries/explore-feed-previews.tsx b/src/state/queries/explore-feed-previews.tsx index 2aee8b6b3..4cd7336c0 100644 --- a/src/state/queries/explore-feed-previews.tsx +++ b/src/state/queries/explore-feed-previews.tsx @@ -120,6 +120,7 @@ export type FeedPreviewItem = export function useFeedPreviews( feedsMaybeWithDuplicates: AppBskyFeedDefs.GeneratorView[], + isEnabled: boolean = true, ) { const feeds = useMemo( () => @@ -135,7 +136,7 @@ export function useFeedPreviews( const {data: preferences} = usePreferencesQuery() const userInterests = aggregateUserInterests(preferences) const moderationOpts = useModerationOpts() - const enabled = feeds.length > 0 + const enabled = feeds.length > 0 && isEnabled const query = useInfiniteQuery({ enabled, |