Skip to content

Highcharts Component retains stale connector reference after DataPool.setConnectorOptions() #23935

@trikam2111

Description

@trikam2111

Expected behaviour

When updating the connector URL via DataPool.setConnectorOptions(), the Highcharts Component should reflect the changes and render data from the new URL after the next data load.

Actual behaviour

The Highcharts Component does not reflect changes made via DataPool.setConnectorOptions(). It continues to display data from the previous URL.

Investigation reveals that while the DataPool correctly sends requests to the new URL, the Highcharts Component retains a reference to the old connector instance. Specifically, component.connectorHandlers[0].connector.options still contains the old URL, causing the component to render stale data.

Additionally: Updating the connector options causes the polling mechanism to stop working, even when enablePolling: true is explicitly included in the new options object:

{
    id: 'coinData',
    type: 'JSON',
    beforeParse: parser,
    dataUrl: 'https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=usd&days=1',
    firstRowAsNames: true,
    enablePolling: true,
    dataRefreshRate: 10
}

Live demo with steps to reproduce

JsFiddle demo

  1. Open the demo.
  2. Observe the initial data values (Currency is in Euro).
  3. Click the "Connector change" button.
  4. Observe the data values again.

Result: Although the network tab shows the connector fetching the new USD data, the Highcharts Component continues to display the old Euro data.

Product version

Highcharts Dashboards v4.0.0 (2025-11-05)

Affected browser(s)

Chrome version 143.0.7499.41 (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions