Home › Forums › Chart Support › React – error happen when zoom › Reply To: React – error happen when zoom
I know the reason that cause this error. Because I render multiple line chart and sync zoom, so I need to push the ref (onRef) to an array for sync zoom behavior.
Then I have a refresh button for user to refresh the chart and re-render the chart, but I forget to clear the array before re-render so the array size become larger and mix with previous ref.
Therefore I try to clear the array before call the API to retrieve the data and re-render the chart, but I found that the onRef is not trigger. It will only trigger when first time render the chart. Why?