Skip to content

Chaining map triggers evaluation #1105

@Dsolnik

Description

@Dsolnik

Description of expected behavior and the observed behavior

When chaining together multiple maps, we shouldn’t eagerly evaluate.

Complete, minimal, self-contained example code that reproduces the issue

In [1]: a = [1,2,3]

In [2]: def f(x):
   ...:     print(x)
   ...: 

In [3]: v = param.rx(a).rx.map(f)

In [4]: v = param.rx(a).rx.map(f).rx.map(f)
1
2
3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions