-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Refactor onboarding suggested follows #1897
Conversation
return true | ||
}) | ||
|
||
// TODO refactor — hydrate follow cache 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.
@pfrazee just double checking that we won't need to do this anymore
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.
Yep!
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.
It can go
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.
Some small notes but looks good
return true | ||
}) | ||
|
||
// TODO refactor — hydrate follow cache 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.
Yep!
return true | ||
}) | ||
|
||
// TODO refactor — hydrate follow cache 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.
It can go
} | ||
} | ||
|
||
outer: while (additional.length) { |
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.
so rare that you get to use labels in ts, love it when you do
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.
so satisfying
const onFollowStateChange = React.useCallback( | ||
async ({following, did}: {following: boolean; did: string}) => { | ||
if (following) { | ||
const {suggestions: results} = await getSuggestedFollowsByActor(did) |
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.
should wrap this in a try/catch if just to log or suppress it, so we dont have uncaughts
No description provided.