According to the docs, unsubscribeCrosshairMove
is used to unsubscribe a handler that was previously subscribed using subscribeCrosshairMove
. We intend to use unsubscribe...
to remove previous handlers before using subscribe...
to re-subscribe the crosshair move after seriesData updates. The code below, however does not properly unsubscribe, I assume because of the syntax used in subscribe...
to access the e
event. Does anyone know how to preserve the e
for event data access, while also enabling unsubscribe...
? #tradingview
this.mainChart.unsubscribeCrosshairMove(this.subCrossAndSync());
this.mainChart.subscribeCrosshairMove((e) => this.subCrossAndSync(e, this.midChart, seriesData));