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'm encountering an issue where if I switch symbols through 'setSymbol' in the following order - tokenA -> setSymbol(tokenB) -> setSymbol(tokenA), the getBars method doesn't get called when switching back to tokenA.
Here are the steps to reproduce:
Start with a symbol (for instance tokenA).
Switch to a different symbol by calling setSymbol(tokenB).
Switch back to the original symbol by again calling setSymbol(tokenA).
I observed that when switching back to tokenA, getBars was not triggered.
This behavior is causing an issue because I expect the chart to fetch the latest data for tokenA by calling getBars when it is set as the active symbol through setSymbol.
I am wondering if this is the expected behavior, or if there is a mechanism I need to implement to ensure that getBars gets called to fetch up-to-date data upon switching back to previously viewed symbols.
Please note, in our implementation, we are not utilizing the searchSymbols function to switch symbols, we directly use setSymbol.
The text was updated successfully, but these errors were encountered:
keene2
changed the title
setSymbol without searchSymbols not fetch data
switch Symbol without searchSymbols not fetch data
May 29, 2024
I'm encountering an issue where if I switch symbols through 'setSymbol' in the following order -
tokenA
->setSymbol(tokenB)
->setSymbol(tokenA)
, thegetBars
method doesn't get called when switching back totokenA
.Here are the steps to reproduce:
tokenA
).setSymbol(tokenB)
.setSymbol(tokenA)
.I observed that when switching back to
tokenA
,getBars
was not triggered.This behavior is causing an issue because I expect the chart to fetch the latest data for
tokenA
by callinggetBars
when it is set as the active symbol throughsetSymbol
.I am wondering if this is the expected behavior, or if there is a mechanism I need to implement to ensure that
getBars
gets called to fetch up-to-date data upon switching back to previously viewed symbols.Please note, in our implementation, we are not utilizing the
searchSymbols
function to switch symbols, we directly usesetSymbol
.The text was updated successfully, but these errors were encountered: