You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 happens
Observable.combineLatest inside getDashboardItemsAsObservable() to create AnimatableSectionModel(model: "some", items: cellViewModels)
The text was updated successfully, but these errors were encountered:
arpitdsoni
changed the title
RxTableViewSectionedAnimatedDataSource cellForRowAt isn't called until cell goes offscreen
RxTableViewSectionedAnimatedDataSource dataSource sectionModels are always same with newSections
Jun 4, 2021
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!
The text was updated successfully, but these errors were encountered: