Fix onboarding follows (#1922)

zio/stable
Eric Bailey 2023-11-15 19:37:32 -06:00 committed by GitHub
parent 8857ba70c6
commit 610eeecd26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -84,7 +84,6 @@ export function useSuggestedFollowsByActorQuery({did}: {did: string}) {
})
}
// TODO refactor onboarding to use above, but this is still used
export function useGetSuggestedFollowersByActor() {
const {agent} = useSession()
const queryClient = useQueryClient()

View File

@ -25,8 +25,7 @@ export const RecommendedFollows = observer(function RecommendedFollowsImpl({
const pal = usePalette('default')
const {isTabletOrMobile} = useWebMediaQueries()
const {data: suggestedFollows, dataUpdatedAt} = useSuggestedFollowsQuery()
const {mutateAsync: getSuggestedFollowsByActor} =
useGetSuggestedFollowersByActor()
const getSuggestedFollowsByActor = useGetSuggestedFollowersByActor()
const [additionalSuggestions, setAdditionalSuggestions] = React.useState<{
[did: string]: AppBskyActorDefs.ProfileView[]
}>({})