-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
ContactStore #2283
ContactStore #2283
Conversation
Somewhat on the right track, but the initial loading of contacts should happen when the wallet loads up. We don't want to read from encrypted storage every time we go to contact details, we just want to read from the store |
…t on saving/updating contacts
003b376
to
9ed6de7
Compare
stores/ContactStore.ts
Outdated
: []; | ||
|
||
if (isEdit && this.prefillContact && !isNostrContact) { | ||
console.log('heree', this.prefillContact); |
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.
remove this
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.
done
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.
change requested
views/Settings/Contacts.tsx
Outdated
@@ -463,7 +438,7 @@ export default class Contacts extends React.Component< | |||
secondary | |||
/> | |||
)} | |||
{loading ? ( | |||
{ContactStore?.loading ? ( |
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.
since loading is used twice (here and 405), let's destructure it on line 206
views/ContactDetails.tsx
Outdated
@@ -672,8 +681,10 @@ export default class ContactDetails extends React.Component< | |||
<Button | |||
onPress={() => { | |||
navigation.goBack(); | |||
ContactStore.setPrefillContact( |
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.
since setPrefillContact
is used twice (here and 242), let's destructure it at the top of the render function
No description provided.