zio/stable
Paul Frazee 2023-03-22 11:07:00 -05:00
parent a8a747ebcb
commit a369e07956
2 changed files with 1 additions and 18 deletions

View File

@ -72,21 +72,6 @@ export class FeedViewPostsSlice {
this.items.splice(0, 0, {post: this.items[0].reply?.parent}) this.items.splice(0, 0, {post: this.items[0].reply?.parent})
} }
} }
logSelf() {
console.log(
`- Slice ${this.items.length}${this.isThread ? ' (thread)' : ''} -`,
)
for (const item of this.items) {
console.log(
` ${item.reason ? `RP by ${item.reason.by.handle}: ` : ''}${
item.post.author.handle
}: ${item.reply ? `(Reply ${item.reply.parent.author.handle}) ` : ''}${
item.post.record.text
}`,
)
}
}
} }
export class FeedTuner { export class FeedTuner {
@ -158,8 +143,6 @@ export class FeedTuner {
for (const item of slice.items) { for (const item of slice.items) {
this.seenUris.add(item.post.uri) this.seenUris.add(item.post.uri)
} }
// DEBUG uncomment to get a quick view of the data
// slice.logSelf()
} }
return slices return slices

View File

@ -50,7 +50,7 @@ export const Pager = ({
offset, offset,
onSelect: onTabBarSelect, onSelect: onTabBarSelect,
})} })}
{children.map((child, i) => ( {React.Children.map(children, (child, i) => (
<View <View
style={selectedPage === i ? undefined : s.hidden} style={selectedPage === i ? undefined : s.hidden}
key={`page-${i}`}> key={`page-${i}`}>