Skip to content

[Bug]: LeftJoin produces duplicated results! #943

Description

@bakhtvar

Describe the bug 🐞

Simply the code below its expected to iterate and generate 3 outputs.

            var leftPart = new[] { 1, 2, 3 };
            var rightPart = new[] { 4, 6, 2 };
            leftPart.AsObservableChangeSet(x => 2 * x)
                .LeftJoin(rightPart.AsObservableChangeSet(x => x), x => x, (a, b) => new { a, b })
                .Transform(x => x)
                .Subscribe();

but after generating 3 output. it goes back and generates another 3, thus 6 in total!
If I Change it to RightJoin it works as expected, and generates only 3 results.

Step to reproduce

I just put the source code. A few lines of code.

Reproduction repository

https://github.com/reactivemarbles/DynamicData

Expected behavior

This should happen...
1,2
2,4
3,6

Screenshots 🖼️

No response

IDE

No response

Operating system

No response

Version

No response

Device

No response

DynamicData Version

No response

Additional information ℹ️

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions