[Feature]: FilterOnObservable passes to downstream anyways then it gets back to check?!

Đang mở
#1,039 6 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@JakenVeina đang làm issue này rồi.

Từ ngày 10/5/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Describe the functionality desired 🐞

.FilterOnObservable(item => item.WhenAnyValue(x => x.AlwaysFalse))
.Transform(x => {
Log.Warning("Shall never be called!");
return x;
})

While it is expected the log never happens, but the log is happening once!
I have asked some AI, they said that this is by design, but it is totally wired from my point of view.

The steps the functionality will provide

I guess, with the above design ultimately FilterOnObservable becomes useless,,,, and I have used the following workaround everywhere..

.AutoRefreshOnObservable(item => item.WhenAnyValue(x => x.AlwaysFalse).Skip(1))
.Filter(x => x.AlwaysFalse)
.Transform(x => {
Log.Warning("Shall never be called!");
return x;
})

this correctly never goes to log, but I had two lines of code instead of one.

Considerations

Above I provided the workaround.

Ngôn ngữ chính
C#
Star
1.9k
Fork
194
Merge trung bình
12 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của reactivemarbles/DynamicData

Tất cả issue của reactivemarbles/DynamicData

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.