diff options
author | Hailey <me@haileyok.com> | 2024-10-17 12:21:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-17 12:21:07 -0700 |
commit | 834beac58c4206e2cb573a40ed2d151bc3eeefbe (patch) | |
tree | e32fa529db65d5b54a2706ee9c19b82a1dce913b /src/state/queries/post-feed.ts | |
parent | 1c6cee7a0d12e8ba3d2940f7ee18d1d9b8aa437f (diff) | |
download | voidsky-834beac58c4206e2cb573a40ed2d151bc3eeefbe.tar.zst |
Temporarily disable window gate during EME (#5814)
Diffstat (limited to 'src/state/queries/post-feed.ts')
-rw-r--r-- | src/state/queries/post-feed.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/state/queries/post-feed.ts b/src/state/queries/post-feed.ts index 1785eb445..b2e9dcd4c 100644 --- a/src/state/queries/post-feed.ts +++ b/src/state/queries/post-feed.ts @@ -28,7 +28,6 @@ import {FeedTuner, FeedTunerFn} from '#/lib/api/feed-manip' import {DISCOVER_FEED_URI} from '#/lib/constants' import {BSKY_FEED_OWNER_DIDS} from '#/lib/constants' import {moderatePost_wrapped as moderatePost} from '#/lib/moderatePost_wrapped' -import {useGate} from '#/lib/statsig/statsig' import {logger} from '#/logger' import {STALE} from '#/state/queries' import {DEFAULT_LOGGED_OUT_PREFERENCES} from '#/state/queries/preferences/const' @@ -123,7 +122,6 @@ export function usePostFeedQuery( params?: FeedParams, opts?: {enabled?: boolean; ignoreFilterFor?: string}, ) { - const gate = useGate() const feedTuners = useFeedTuners(feedDesc) const moderationOpts = useModerationOpts() const {data: preferences} = usePreferencesQuery() @@ -148,7 +146,10 @@ export function usePostFeedQuery( * unwanted content, we may over-fetch here to try and fill pages by * `MIN_POSTS`. */ - const fetchLimit = gate('post_feed_lang_window') ? 100 : MIN_POSTS + + // TEMPORARILY DISABLING GATE TO PREVENT EVENT CONSUMPTION @TODO EME-GATE + // const fetchLimit = gate('post_feed_lang_window') ? 100 : MIN_POSTS + const fetchLimit = MIN_POSTS // Make sure this doesn't invalidate unless really needed. const selectArgs = React.useMemo( |