AndreiBogdan
07/18/2023, 8:26 AMArkadii Ivanov
07/18/2023, 8:52 AMBehaviorObservableWrapper
(since v2.0) plus a method like accept(Something)
in your ViewModel or equivalent. Or you can implement a wrapper on your own, similarly to BehaviorObservableWrapper
.AndreiBogdan
07/18/2023, 9:00 AMAndreiBogdan
07/18/2023, 9:01 AMAndreiBogdan
07/18/2023, 9:03 AMAndreiBogdan
07/18/2023, 9:03 AMAndreiBogdan
07/18/2023, 9:04 AMArkadii Ivanov
07/18/2023, 9:04 AMBehaviorObservableWrapper
was added in v2.0. It should work if you don't need to publish events from the iOS side (read only).Arkadii Ivanov
07/18/2023, 9:11 AMbookLevelObservable
? It subscribes to bookLevelBehavorSubject
and leaks the subscription (the returned Disposable
is unmanaged). You could just downcast as val bookLevelObservable: Observable<...> = bookLevelBehaviorSubject
.
refresh().subscribe{}
also ignores the returned Disposable
. Here, you could utilise DisposableScope.