marcellejs / marcelle

An Interactive Machine Learning Toolkit
https://marcelle.dev
MIT License
44 stars 7 forks source link

Derived streams do not preserve the hold property #10

Closed JulesFrancoise closed 2 years ago

JulesFrancoise commented 2 years ago

Describe the bug When a stream is transformed (e.g. using .map()), the hold property of the initial stream is not propagated to the derived stream.

Expected behavior It would seem logical in most cases to preserve the hold property from the input stream. The behavior could be explicitly overriden by calling .hold(false) on the resulting stream.

Actual behavior Derived stream never hold by default, we have to call .hold() on the resulting stream.