Open arpitdsoni opened 3 years ago
i meet the same problem,how did you resolve it?
I probably know the reason. It may be that after the viewmodel is updated, it is still the previous viewmodel without creating a new viewmodel, resulting in Equatable being always consistent.
I have been debugging an issue where cell viewModel gets updated but cell reloading doesn't happen until user manually scrolls cell off screen.
I have verified that IdentifiableType and Equatable are implemented correctly and cellModel properties do get updated, however oldSections and newSections in
tableView(_ tableView: UITableView, observedEvent: Event<Element>)
are always same, because of this lhs and rhs are always same for all items. I don't understand how dataSource.sectionModels are updated before even diff happensObservable.combineLatest
insidegetDashboardItemsAsObservable()
to createAnimatableSectionModel(model: "some", items: cellViewModels)
Any help is appreciated!