Skip to content

Commit 8b0a6c1

Browse files
author
Jonathan Hersh
committed
[Empty Views] Reload only when empty view is visible
1 parent 40f20fd commit 8b0a6c1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

SSDataSources/SSBaseDataSource.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,10 @@ - (void)_updateEmptyView {
284284

285285
// Reloading seems to work around an awkward delay where the empty view
286286
// is not immediately visible but the separator lines still are
287-
[tableView reloadData];
288-
[collectionView reloadData];
287+
if (shouldShowEmptyView) {
288+
[tableView reloadData];
289+
[collectionView reloadData];
290+
}
289291
}
290292

291293
#pragma mark - NSIndexPath helpers

0 commit comments

Comments
 (0)