DiffUtil.ItemCallback using reference comparator to check if items are the same
Is it a good idea to check if items are same using a reference comparator === in the areItemsTheSame method ?
For example :
class PhotoDiffCallback : DiffUtil.ItemCallback() {
override fun areItemsTheSame(oldItem: Photo, newItem: Photo) = oldItem === newItem
override fun areContentsTheSame(oldItem: Photo, newItem: Photo) = oldItem == newItem
}