Replies: 2 comments 2 replies
-
@Bulgrak That's a great question. The answer is ... It isn't Why does There are other overloads that use a newer implementation and I went to great lengths to ensure that changes where batched together as much as possible. If you group with this line instead: .Group(Observable.Return((Topic x) => x.Category), Observable.Empty<Unit>()) You'll see that you get the behavior that you expect. (That last Perhaps we should consider updating the implementation to better match the other operator, but that risks potentially breaking people who are depending on the old behavior. |
Beta Was this translation helpful? Give feedback.
-
I'm inclined to say that grouping or non-grouping of changesets falls in the category of implementation detail, except maybe in a few operators that are specifically ABOUT grouping things up. So yeah, I would consider that an improvement we can make in older operators. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I have been exploring the operators
.MergeManyChangeSets()
and.Group()
, and I find them particularly useful for emitting a single stream of change sets when performing batch additions that involve multiple groupings.However, I'm wondering why this is not the case when performing batch removals that involve multiple groupings?
Here is an example to demonstrate this:
This produces the following output:
My observations:
Is this behavior by design, or is there a specific reason why
.MergeManyChangeSets()
handles batch removals differently than batch additions?Any insights or guidance would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions