Clean up getPostThreadV2 settings/params in prep for future work (#9179)

* Deprecate prioritizeFollowedUsers

* Bump API package
This commit is contained in:
Eric Bailey
2025-11-06 10:42:08 -06:00
committed by GitHub
parent ec2c580aae
commit 7bf00424c4
8 changed files with 10 additions and 79 deletions
-5
View File
@@ -49,7 +49,6 @@ export function usePostThread({anchor}: {anchor?: string}) {
setSort: baseSetSort,
view,
setView: baseSetView,
prioritizeFollowedUsers,
} = useThreadPreferences()
const below = useMemo(() => {
return view === 'linear'
@@ -63,11 +62,9 @@ export function usePostThread({anchor}: {anchor?: string}) {
anchor,
sort,
view,
prioritizeFollowedUsers,
})
const postThreadOtherQueryKey = createPostThreadOtherQueryKey({
anchor,
prioritizeFollowedUsers,
})
const query = useQuery<UsePostThreadQueryResult>({
@@ -79,7 +76,6 @@ export function usePostThread({anchor}: {anchor?: string}) {
branchingFactor: view === 'linear' ? LINEAR_VIEW_BF : TREE_VIEW_BF,
below,
sort: sort,
prioritizeFollowedUsers: prioritizeFollowedUsers,
})
/*
@@ -167,7 +163,6 @@ export function usePostThread({anchor}: {anchor?: string}) {
async queryFn() {
const {data} = await agent.app.bsky.unspecced.getPostThreadOtherV2({
anchor: anchor!,
prioritizeFollowedUsers,
})
return data
},
+1 -1
View File
@@ -25,7 +25,7 @@ export const createPostThreadOtherQueryKey = (
export type PostThreadParams = Pick<
AppBskyUnspeccedGetPostThreadV2.QueryParams,
'sort' | 'prioritizeFollowedUsers'
'sort'
> & {
anchor?: string
view: 'tree' | 'linear'