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

Update Muted and Blocked accounts screens (react-query refactor) #1892

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

pfrazee
Copy link
Collaborator

@pfrazee pfrazee commented Nov 13, 2023

  • Reworks Muted Accounts screen
  • Reworks Blocked Accounts screen
  • Updates <ProfileCard> to use the profile shadow cache and useModerationOpts hook

Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

cool

const isEmpty = !isFetching && !data?.pages[0]?.blocks.length
const profiles = React.useMemo(() => {
if (data?.pages) {
return data.pages.flatMap(page => page.blocks)
Copy link
Collaborator

Choose a reason for hiding this comment

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

lol i forgot this exists now

@pfrazee pfrazee merged commit a81c4b6 into main Nov 14, 2023
3 of 4 checks passed
@pfrazee pfrazee deleted the mod-state-queries branch November 14, 2023 01:31
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