You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.
For discussion:
The OHContact has mutable fields. Whilst customProperties and tags should perhaps stay mutable for the attachment of display metadata, the rest of the fields should probably be immutable when vended by the framework
The text was updated successfully, but these errors were encountered:
I agree there are definite advantages to OHContact having immutable fields, but there are some problems associated with this. Of course, the data providers, post processors, and selection filters need to modify OHContact models, so we would presumably need to create an OHMutableContact model and use that when passing through components. Then when you access dataSource.contacts we would return immutable copies, but that creates a problem when you try to compare contacts and selectedContacts when you keep making copies. Additionally, apps may want to modify the contacts, and then save them (via the CN identifier, persisted contacts, etc.). We could make a mutable copy method for this, but then the contacts in the data source can't be updated, so you would have to reload everything. Overall, I think the disadvantages outweigh the advantages. Are there any specific advantages that you think make it worth it?
For discussion:
The OHContact has mutable fields. Whilst customProperties and tags should perhaps stay mutable for the attachment of display metadata, the rest of the fields should probably be immutable when vended by the framework
The text was updated successfully, but these errors were encountered: