-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove getProfile
calls when loading feed
#3881
Conversation
Your Render PR Server URL is https://social-app-pr-3881.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cosmc3n109ks73dr04rg. |
f610de3
to
fe01005
Compare
|
825f3e6
to
0c16dba
Compare
@@ -34,6 +34,7 @@ export const DEFAULT_LOGGED_OUT_PREFERENCES: UsePreferencesQueryResponse = { | |||
pinned: [], | |||
unpinned: [], | |||
}, | |||
savedFeeds: [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is the correct move here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just blocking for now on the SDK update, looks great otherwise
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`
2d7c37b
to
87bc522
Compare
* origin/main: Remove `getProfile` calls when loading feed (#3881) Log error statuses from failed resume session calls (#4174) disable alt text auto focus on Android (#4198) [🐴] add link to chat settings from main settings (#4197) ✍️ Add OTA Docs (#4187) Decrease thickness of border on message input (#4196) [🐴] better error message for "Bad token scope" error (#4194) Add padding to dialogs when keyboard is open on Android (#4182) [🐴] Do not init event bus if no session (#4193) stop line breaks for timeelapsed (#4191) Reduce polling when app is backgrounded (#4192) implement a safari hack for ime (#4186) [🐴] Suspend event bus when switching accounts (#4190)
Why
Currently, we make a ton of calls to
getProfile()
to display the "Reply to" label. However, since bluesky-social/atproto#2461, we can now get this info from thegrandparentAuthor
field in the API response.Test Plan
Before
After
Verify that the requests are no longer present when loading your timeline. Also verify that posts properly display the
Reply to
label when they should.Check situations where:
A normal situation
Removing the parent
Us making a thread