From 087246e1eec4a7a5ea92c5f9e4219673aef6292c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 10 Jun 2025 14:40:11 -0500 Subject: [PATCH] Rename, comment --- src/screens/PostThread/index.tsx | 9 +++++++-- src/view/screens/PostThread.tsx | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/screens/PostThread/index.tsx b/src/screens/PostThread/index.tsx index 1414438ef6..ab0b7645c7 100644 --- a/src/screens/PostThread/index.tsx +++ b/src/screens/PostThread/index.tsx @@ -42,7 +42,7 @@ import {ListFooter} from '#/components/Lists' const PARENT_CHUNK_SIZE = 5 const CHILDREN_CHUNK_SIZE = 50 -export function Inner({uri}: {uri: string | undefined}) { +export function PostThread({uri}: {uri: string | undefined}) { const {gtMobile} = useBreakpoints() const {hasSession} = useSession() const initialNumToRender = useInitialNumToRender() // TODO @@ -358,7 +358,12 @@ export function Inner({uri}: {uri: string | undefined}) { ) } else if (item.depth === 0) { return ( - + /* + * Keep this view wrapped so that the anchor post is always index 0 + * in the list and `maintainVisibleContentPosition` can do its + * thing. + */ + @@ -29,7 +29,7 @@ export function PostThreadScreen({route}: Props) { return ( {gate('post_threads_v2_unspecced') || __DEV__ ? ( - + ) : ( )}