Doubble Button, erase all my page with second button, why?

Hi, i´m working with streamlit, but i have the problem when i want to use buttons. In my routine it has to chargue the files with one button, and make processing data. After with those arranges, i stop the program with (st.stop) until the user push other button to follow and make a report. But, when you click the second button, it erases all, i don´t why? somebody could help me?

Could you share your code ?
It seems like the issue is with st.session_state. Since Streamlit runs the script from top to bottom, if you change the state of the first button and don’t “save” it, pressing a second button will reset the state of the first one, causing you to lose all your progress.

Here a good explanation :

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.