-
Notifications
You must be signed in to change notification settings - Fork 15
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] Make section and cell view models diffable by default #119
Conversation
- Section and cell view models are now diffable by default. They have default values for `diffingKey`, but clients should be customizing these for their needs. - `CollectionSectionViewModel` protocol now inherits from `DiffableViewModel` protocol - `CollectionCellViewModel` protocol now inherits from `DiffableViewModel` protocol - ` TableSectionViewModel` protocol now inherits from `DiffableViewModel` protocol - `TableCellViewModel` protocol now inherits from `DiffableViewModel` protocol Closes #114
Generated by 🚫 Danger |
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.
I like the approach of defaulting to UUIDs
@asmallteapot Yeah, I wanted this to be non-optional (also required by the |
CHANGELOG.md
Outdated
### Changed | ||
|
||
- Section and cell view models are now diffable by default. ([#119](https://github.com/plangrid/ReactiveLists/pull/119), [@jessesquires](https://github.com/jessesquires)) | ||
Each provide default values for `diffingKey`, but you should be customize them for your own needs or opt-out of automatic diffing. |
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.
"but you should be" -> "but you can"
They have default values for
diffingKey
, but clients should be customizing these for their needs.CollectionSectionViewModel
protocol now inherits fromDiffableViewModel
protocolCollectionCellViewModel
protocol now inherits fromDiffableViewModel
protocolTableSectionViewModel
protocol now inherits fromDiffableViewModel
protocolTableCellViewModel
protocol now inherits fromDiffableViewModel
protocolCloses #114