From 2c7b69cc481487a02f20d81bc22b784196fbfb41 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 26 Jan 2026 22:40:07 +0200 Subject: [PATCH] add recId to follow dialog --- src/components/ProgressGuide/FollowDialog.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ProgressGuide/FollowDialog.tsx b/src/components/ProgressGuide/FollowDialog.tsx index 78ac868b28..ead20209e6 100644 --- a/src/components/ProgressGuide/FollowDialog.tsx +++ b/src/components/ProgressGuide/FollowDialog.tsx @@ -9,6 +9,7 @@ import {type ModerationOpts} from '@atproto/api' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' +import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' import {popularInterests, useInterestsDisplayNames} from '#/lib/interests' import {useModerationOpts} from '#/state/preferences/moderation-opts' import {useActorSearch} from '#/state/queries/actor-search' @@ -262,7 +263,7 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) { const selectedInterestRef = useRef(selectedInterest) selectedInterestRef.current = selectedInterest - const onViewableItemsChanged = useRef( + const onViewableItemsChanged = useNonReactiveCallback( ({viewableItems}: {viewableItems: ViewToken[]}) => { for (const viewableItem of viewableItems) { const item = viewableItem.item as Item @@ -274,7 +275,7 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) { ) ax.metric('suggestedUser:seen', { logContext: 'ProgressGuide', - recId: undefined, + recId: hasSearchText ? undefined : suggestions?.recId, position: position !== -1 ? position : 0, suggestedDid: item.profile.did, category: selectedInterestRef.current,