···22 // Keep this alphabetic please.
33 | 'debug_show_feedcontext' // DISABLED DUE TO EME
44 | 'post_feed_lang_window' // DISABLED DUE TO EME
55+ | 'remove_show_latest_button'
···1414import {isNative} from '#/platform/detection'
1515import {listenSoftReset} from '#/state/events'
1616import {FeedFeedbackProvider, useFeedFeedback} from '#/state/feed-feedback'
1717+import {useSetHomeBadge} from '#/state/home-badge'
1718import {RQKEY as FEED_RQKEY} from '#/state/queries/post-feed'
1819import {FeedDescriptor, FeedParams} from '#/state/queries/post-feed'
1920import {truncateAndInvalidate} from '#/state/queries/util'
···5960 const feedFeedback = useFeedFeedback(feed, hasSession)
6061 const scrollElRef = React.useRef<ListMethods>(null)
6162 const [hasNew, setHasNew] = React.useState(false)
6363+ const setHomeBadge = useSetHomeBadge()
6464+6565+ React.useEffect(() => {
6666+ if (isPageFocused) {
6767+ setHomeBadge(hasNew)
6868+ }
6969+ }, [isPageFocused, hasNew, setHomeBadge])
62706371 const scrollToTop = React.useCallback(() => {
6472 scrollElRef.current?.scrollToOffset({
+6
src/view/com/util/load-latest/LoadLatestBtn.tsx
···99import {usePalette} from '#/lib/hooks/usePalette'
1010import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
1111import {clamp} from '#/lib/numbers'
1212+import {useGate} from '#/lib/statsig/statsig'
1213import {colors} from '#/lib/styles'
1314import {isWeb} from '#/platform/detection'
1415import {useSession} from '#/state/session'
···33343435 // move button inline if it starts overlapping the left nav
3536 const isTallViewport = useMediaQuery({minHeight: 700})
3737+3838+ const gate = useGate()
3939+ if (gate('remove_show_latest_button')) {
4040+ return null
4141+ }
36423743 // Adjust height of the fab if we have a session only on mobile web. If we don't have a session, we want to adjust
3844 // it on both tablet and mobile since we are showing the bottom bar (see createNativeStackNavigatorWithAuth)