Cleanup last commit

This commit is contained in:
Eric Bailey
2025-06-06 16:03:08 -05:00
parent 0aa17e41ea
commit 02eda9ebd2
2 changed files with 4 additions and 7 deletions
+4 -1
View File
@@ -129,7 +129,7 @@ export function Inner({uri}: {uri: string | undefined}) {
const headerHeight = headerElement.getBoundingClientRect().height
if (shouldScrollToAnchor.current) {
/**
/*
* `deferParents` is `true` on a cold load, and always reset to
* `true` when params change (via the key on the anchor post).
*
@@ -262,6 +262,9 @@ export function Inner({uri}: {uri: string | undefined}) {
* `onLayout` to fire any time the thread params change so that
* `deferParents` is always reset to `false` once the anchor post is
* rendered.
*
* If we ever add additional thread params to this screen, they
* will need to be added here.
*/
key={item.uri + thread.state.view + thread.state.sort}
ref={anchorRef}
-6
View File
@@ -264,12 +264,6 @@ export function usePostThread({anchor}: {anchor?: string}) {
setOtherItemsVisible,
])
// items.forEach(slice => {
// if (slice.type === 'threadPost' && slice.depth === 0) {
// slice.key = slice.uri + view + sort
// }
// })
return useMemo(
() => ({
state: {