Skip to content

the "resize" helper triggers twice when the returned chart depends on a generator/input #1563

@ccattuto

Description

@ccattuto

Consider the example below, where activityChart() returns a Plot.plot() object, and attRange is a generator/input. On instrumenting activityChart() and triggering one change of attRange it is observed that activityChart() gets called twice. This looks like an issue for cases when the plot is heavy to compute.

<div class="card">
  ${resize((width) => activityChart(data, attRange, {width}))}
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions