Skip to content

Discussion: chart.update architecture #311

@anajavi

Description

@anajavi

Opening new issue to discuss architecture change

@whawker wrote:

Going completely off topic, I've been wondering if useModifiedProps is a mistake, currently when props change we figure out which ones have changed, and commit them as updates to the wrapped Highcharts chart.

I wonder instead if we should be utilising the oneToOne option of chart.update so that we can sure that the state in React representation of the chart, is the same as the internal Highcharts representation. However this might be undermining one of the fundamental principles of this project in the first place, to avoid destroying the chart completely between React re-renders)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions