Fix onboarding follows (#1922)
This commit is contained in:
@@ -84,7 +84,6 @@ export function useSuggestedFollowsByActorQuery({did}: {did: string}) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO refactor onboarding to use above, but this is still used
|
|
||||||
export function useGetSuggestedFollowersByActor() {
|
export function useGetSuggestedFollowersByActor() {
|
||||||
const {agent} = useSession()
|
const {agent} = useSession()
|
||||||
const queryClient = useQueryClient()
|
const queryClient = useQueryClient()
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ export const RecommendedFollows = observer(function RecommendedFollowsImpl({
|
|||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
const {isTabletOrMobile} = useWebMediaQueries()
|
const {isTabletOrMobile} = useWebMediaQueries()
|
||||||
const {data: suggestedFollows, dataUpdatedAt} = useSuggestedFollowsQuery()
|
const {data: suggestedFollows, dataUpdatedAt} = useSuggestedFollowsQuery()
|
||||||
const {mutateAsync: getSuggestedFollowsByActor} =
|
const getSuggestedFollowsByActor = useGetSuggestedFollowersByActor()
|
||||||
useGetSuggestedFollowersByActor()
|
|
||||||
const [additionalSuggestions, setAdditionalSuggestions] = React.useState<{
|
const [additionalSuggestions, setAdditionalSuggestions] = React.useState<{
|
||||||
[did: string]: AppBskyActorDefs.ProfileView[]
|
[did: string]: AppBskyActorDefs.ProfileView[]
|
||||||
}>({})
|
}>({})
|
||||||
|
|||||||
Reference in New Issue
Block a user