Radio Button Displays Previous Selection After Reload

I think that is a bug in streamlit. Anyway, it looks like you are abusing rerun(). You probably want this instead:

st.button("reload", on_click=st.cache_data.clear)

PS. An old bug, indeed.

1 Like