Remove dead gate

This commit is contained in:
Dan Abramov
2024-12-16 21:51:02 +00:00
parent 3ed237b629
commit d7e46beffe
2 changed files with 1 additions and 5 deletions
-1
View File
@@ -1,5 +1,4 @@
export type Gate =
// Keep this alphabetic please.
| 'debug_show_feedcontext' // DISABLED DUE TO EME
| 'post_feed_lang_window' // DISABLED DUE TO EME
| 'remove_show_latest_button'
+1 -4
View File
@@ -144,11 +144,8 @@ export function usePostFeedQuery(
/**
* The number of posts to fetch in a single request. Because we filter
* unwanted content, we may over-fetch here to try and fill pages by
* `MIN_POSTS`.
* `MIN_POSTS`. But if you're doing this, ask @why if it's ok first.
*/
// 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.