Composable Diff improvements #43
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
reddit
Feedbacks from Reddit
up-for-grabs
Up For Grabs
#40 added syntax to define Diff callback for whole adapter. But you still have no ability to define diff callback for
register
blocks separately.There is example of how it may look like:
This builder under the hood should create single
DiffUtil.Callback
with multiple "delegates": one for Cat, one for Dog. Then, whenDiffUtil.Callback
methods are called, that Callback must pick appropriate "delegate" and call itThe text was updated successfully, but these errors were encountered: