On page 394 I read that:
This is happening because your layout has no way of knowing that you updated
I don’t quite understand why. Following the logic of RecyclerView, every time it needs to recycle a view,
getItemCount() get called. When
bind() is called, we proceed to set the updated
sound object to our ViewModel:
getViewModel().setSound(sound). We even call
executePendingBindings() to force the layout to immediately update itself.
Why then is this logic working when creating views but it breaks once recycling them?