Hi again
please look at the code below. It only renders “another text” instead of the first item as well. When I do the same outside a function, it works fine.
import violit as vl
app = vl.App(title="test")
data = app.session_state([{"text":"text"},{"text":"another text"}], key="data")
@app.reactivity
def list():
left, right = app.columns(2)
for item in data.value:
with left:
app.text(item["text"])
with right:
app.selectbox("value", ["test"])
list()
app.run()
Hi again
please look at the code below. It only renders “another text” instead of the first item as well. When I do the same outside a function, it works fine.