Session_state seems to be dropping some data

See this thread and the associated GitHub issue. This is being looked at, but it’s not yet decided what the solution will be.

For the pages, can you try adding st.session_state.update(st.session_state) on top of the page? This should take the not-yet-cleared widget state and save it in session_state.

1 Like