Remove getProfile calls when loading feed (#3881)

* remove unnecessary `getProfile()` calls from feed load

add comments

ensure only if first

simplify

nit

handle cases where the parent is removed

add a comment

remove unnecessary `getProfile()` calls from feed load

limit only to the first post in the returned items

move the logic out of the render and into the query

add the grandparent properly

update `FeedItem`

bump package

update `FeedItem`

update `post-feed` query

update `FeedSlice`

* nit

* simplify logic

* always pass `parentAuthor`

* oops!

* update `DebugMod`
This commit is contained in:
Hailey 2024-05-23 11:35:49 -07:00 committed by GitHub
parent 6d647551cd
commit 70f190d44f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 78 additions and 56 deletions

View file

@ -803,6 +803,8 @@ function MockPostFeedItem({
post={post}
record={post.record as AppBskyFeedPost.Record}
moderation={moderation}
parentAuthor={undefined}
showReplyTo={false}
reason={undefined}
feedContext={''}
/>