Skip to content
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

Merged
merged 6 commits into from
Nov 14, 2023
Merged

Conversation

estrattonbailey
Copy link
Member

No description provided.

return true
})

// TODO refactor — hydrate follow cache here?
Copy link
Member Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can go

Copy link
Collaborator

@pfrazee pfrazee left a 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?
Copy link
Collaborator

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?
Copy link
Collaborator

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) {
Copy link
Collaborator

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

Copy link
Member Author

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)
Copy link
Collaborator

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

@estrattonbailey estrattonbailey merged commit 4355f0f into main Nov 14, 2023
3 of 4 checks passed
estrattonbailey added a commit that referenced this pull request Nov 14, 2023
* origin:
  Fix poll latest loop (#1901)
  Handle end of feed (#1898)
  Refactor onboarding suggested follows (#1897)
  Update Muted and Blocked accounts screens (react-query refactor) (#1892)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants