Skip to content

Commit e261266

Browse files
cabaumanglennawatson
authored andcommitted
Fix: TableView doesn't reflect changes (#1931)
1 parent 49de639 commit e261266

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ReactiveUI/Platforms/uikit-common/CommonReactiveSource.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ private void SectionInfoChanged(IReadOnlyList<TSectionInfo> sectionInfo)
193193
this.Log().Warn(CultureInfo.InvariantCulture, "[#{0}] SectionInfo {1} does not implement INotifyCollectionChanged - any added or removed sections will not be reflected in the UI.", sectionInfoId, sectionInfo);
194194
}
195195

196-
var sectionChanged = notifyCollectionChanged == null ?
196+
var sectionChanged = (notifyCollectionChanged == null ?
197197
Observable<Unit>.Never :
198-
notifyCollectionChanged.ObserveCollectionChanges().Select(_ => Unit.Default);
198+
notifyCollectionChanged.ObserveCollectionChanges().Select(_ => Unit.Default))
199+
.StartWith(Unit.Default);
199200

200201
var disposables = new CompositeDisposable();
201202
disposables.Add(Disposable.Create(() => this.Log().Debug(CultureInfo.InvariantCulture, "[#{0}] Disposed of section info", sectionInfoId)));

0 commit comments

Comments
 (0)