Skip to content

[Bug]: Index out of range exception on transform multiple subscribes #618

Description

@LouisSimon73

Describe the bug 🐞

When we store tranformed changeSet stream in variable and subscribe multiple time on this variable, on exception occures on the second subscription.

  • We did not have the problem in 7.4.3;
  • It does not happen with connectable observable ([variable].Publish().RefCount()).

Thank you in advance !

Step to reproduce

var l_sourceList = new SourceList<int>();

l_sourceList.AddRange(new[] { 0, 1, 2 });

var l_observable = l_sourceList.Connect()
    .Transform(o => o);

l_observable.Transform(o => o).Subscribe();
l_observable.Transform(o => o).Subscribe();

Reproduction repository

https://github.com/reactivemarbles/DynamicData

Expected behavior

This should happen...

Screenshots 🖼️

No response

IDE

Rider Windows

Operating system

Windows 10 Entreprise

Version

20H2 (19042.1645)

Device

PC

DynamicData Version

7.9.5

Additional information ℹ️

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions