This is running locally.
I have the following code
if "submitted" not in st.session_state:
st.session_state.submitted = "Not Clicked"
def clicked():
st.session_state.submitted = "Clicked"
st.write(st.session_state.submitted)
with st.form("test form"):
st.form_submit_button("Submit", on_click=clicked())
st.write(st.session_state.submitted)
When I start the app up using streamlit run, this is what it initializes as:
I have no interacted with the app at all. Why is the value of st.session_state.submitted being changed?