Exclude Discover

This commit is contained in:
Eric Bailey
2024-09-24 14:13:35 -05:00
parent 9503913e2b
commit 0e00552c90
+3 -1
View File
@@ -138,7 +138,9 @@ export function usePostFeedQuery(
const isDiscover = feedDesc.includes(DISCOVER_FEED_URI) const isDiscover = feedDesc.includes(DISCOVER_FEED_URI)
const [pageSize] = React.useState(() => { const [pageSize] = React.useState(() => {
return gate('post_feed_lang_window') ? 100 : PAGE_SIZE // add exclusions here
const isExcluded = isDiscover
return !isExcluded && gate('post_feed_lang_window') ? 100 : PAGE_SIZE
}) })
// Make sure this doesn't invalidate unless really needed. // Make sure this doesn't invalidate unless really needed.