When OnCompleted is called on a Subject,
the associated ReadOnlyReactiveProperty's OnCompleted should also be invoked,
but it is not happening as expected.
var subject = new Subject<Unit>();
var readOnlyReactiveProperty = subject.ToReadOnlyReactiveProperty();
readOnlyReactiveProperty.Subscribe(
onNext: _ => Console.WriteLine("OnNext"),
onCompleted: () => Console.WriteLine("OnCompleted"));
subject.OnCompleted();
Nothing is printed to the console with this code, whereas 'OnCompleted' should be outputted.
When OnCompleted is called on a Subject, the associated ReadOnlyReactiveProperty's OnCompleted should also be invoked, but it is not happening as expected.
Nothing is printed to the console with this code, whereas 'OnCompleted' should be outputted.