Open nickfl opened 4 years ago
OK, I kinda fixed it.
The problem was in dataSource:
.bind(to: tableView.rx.items(dataSource: dataSource))
as looks like dataSource keeps all previous data. Maybe there is a method to flush it, but I couldn't find it.
So, I got rid of it and used a more direct binding on the go:
.bind(to: tableView.rx.items(cellIdentifier: ResultTableViewCell.reuseId)) { row, model, cell in
(cell as ResultTableViewCell).configureCell(track: model)
}
Log shows first:
Where TrackItemPresentable is part of
TrackSection = AnimatableSectionModel<String, TrackItemPresentable>
Binding is done standard way:
where var sectionedItems: Observable<[TrackSection]>
And app crashes on the next update of sectionedItems.