-
Notifications
You must be signed in to change notification settings - Fork 173
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
Feat: Allow users to manage emails #2613
Conversation
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.
All good from me, but you should wait for a Fabs review on this one too
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.
Test out that apollo cache updates work as you expect (e.g. deleting an email, removes it from the list etc.)
|
||
export const settingsUserEmailsQuery = graphql(` | ||
query SettingsUserEmailsQuery { | ||
activeUser { |
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.
All of the ActiveUser fields should be its own SettingsUserEmail_User
fragment that you can then reference in all of the mutations, instead of duplicating id
and emails
every time
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.
Makes sense, I've updated it :) Everything works with the cache, didn't run into any issues when testing
445b4ed
Adds "Email addresses" page to the user settings