const [tickerList, setTickerList] = useState();
tickerListstate correctly? Also, print to console and check again in method1 as well, if
tickerlistis updated properly.
For us to debug further on this, you need to paste here complete code.
after clicking showlist button
after clicking showlist button once again
buttons rendered by map function are irresponsive
but the button rendered separately works fine.
also, when i click showlist, state of tickerlist is empty, but still the buttons get rendered , how this is happening.
when list of stocks will be fetched from backend,
buttons corresponding to each stock should be created
We went through your above-linked code and console output screenshots. It looks like an issue with your
tickerList.mapiteration and button attributes assignment logic. As all publisher buttons are rendered properly when individually assigned with correct value attribute i.e your
method2. It has nothing to do with kite publisher.
finally working as expected