You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a candlestick chart component. I'm selecting a stock from a list, which passes a prop containing the ticker and and a prop containing the chart data points. Working well. The problem is when I pass new props to the component, the chart add the data points to the first. Every time I click on a new stock, the chart adds the data points again. The data points do not clear between component usage.
I've tried clearing the data using both the onDestroy and beforeUpdate lifecycle functions, to no effect.
Is there a way to clear data?
The text was updated successfully, but these errors were encountered:
I have a candlestick chart component. I'm selecting a stock from a list, which passes a prop containing the ticker and and a prop containing the chart data points. Working well. The problem is when I pass new props to the component, the chart add the data points to the first. Every time I click on a new stock, the chart adds the data points again. The data points do not clear between component usage.
I've tried clearing the data using both the onDestroy and beforeUpdate lifecycle functions, to no effect.
Is there a way to clear data?
The text was updated successfully, but these errors were encountered: