Let gate cache
This commit is contained in:
@@ -147,9 +147,7 @@ export function usePostFeedQuery(
|
|||||||
* unwanted content, we may over-fetch here to try and fill pages by
|
* unwanted content, we may over-fetch here to try and fill pages by
|
||||||
* `MIN_POSTS`.
|
* `MIN_POSTS`.
|
||||||
*/
|
*/
|
||||||
const fetchLimit = React.useState(() => {
|
const fetchLimit = gate('post_feed_lang_window') ? 100 : MIN_POSTS
|
||||||
return gate('post_feed_lang_window') ? 100 : MIN_POSTS
|
|
||||||
})[0]
|
|
||||||
|
|
||||||
// Make sure this doesn't invalidate unless really needed.
|
// Make sure this doesn't invalidate unless really needed.
|
||||||
const selectArgs = React.useMemo(
|
const selectArgs = React.useMemo(
|
||||||
|
|||||||
Reference in New Issue
Block a user