Skip to content

Commit 17fdc86

Browse files
authored
Merge pull request #85 from riccardo-tesio/issue/84
Fixes for issue #84
2 parents 021e5ae + dd0296c commit 17fdc86

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/DataSources+Rx/RxCollectionViewSectionedAnimatedDataSource.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ open class RxCollectionViewSectionedAnimatedDataSource<S: AnimatableSectionModel
5959
do {
6060
// if view is not in view hierarchy, performing batch updates will crash the app
6161
if collectionView.window == nil {
62+
dataSource.setSections(newSections)
6263
collectionView.reloadData()
6364
return
6465
}

Sources/DataSources+Rx/RxTableViewSectionedAnimatedDataSource.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ open class RxTableViewSectionedAnimatedDataSource<S: AnimatableSectionModelType>
4040
DispatchQueue.main.async {
4141
// if view is not in view hierarchy, performing batch updates will crash the app
4242
if tableView.window == nil {
43+
dataSource.setSections(newSections)
4344
tableView.reloadData()
4445
return
4546
}

0 commit comments

Comments
 (0)