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

fix: #417 landing page avatar displaying bug #438

Merged
merged 3 commits into from
Jul 4, 2021

Conversation

ulayab
Copy link
Contributor

@ulayab ulayab commented Jul 4, 2021

No description provided.

Copy link
Member

@MrOrz MrOrz left a comment

Choose a reason for hiding this comment

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

Thanks a lot for finding the missing data!

I think it would be great if we can do the following to achieve fragment colocation:

  1. move USER_QUERY and useQuery to within LandingPage/Header, as its data is only used there
  2. use Avatar.fragment.AvatarData in query so that we don't need to enumerate all fields that is used by Avatar component

@ulayab are you interested in changing the code above? I can do it after merge as well.

@ulayab
Copy link
Contributor Author

ulayab commented Jul 4, 2021

Sure! I'll try to deal with it.

@ulayab
Copy link
Contributor Author

ulayab commented Jul 4, 2021

Hi @MrOrz I just update the branch.
BTW, it's my first time using Apollo, so I'm not really sure if it's an expected practice.🤧
Please advise as necessary, thank you!

Copy link
Member

@MrOrz MrOrz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

@MrOrz MrOrz merged commit 2236281 into cofacts:master Jul 4, 2021
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