Before version 1.37, we can use st.rerun to close the experimental_dialog with the current page status refresh.
But after upgrading to version 1.37, the whole app rerun, this take me to the initial page of my app.
I use a session_state to store which page content to display.
In page3, I opened a dialog, click a select button to choose an item from a list, that will close the dialog and rerun the whole app instead of page3.
I am encoutering the same behaviour using st.fragment. Previously I used st.rerun to “escape” the fragment context and to be able to use the input the fragment function collected out of the scope of the fragment (by writing it to the session_state). Now the whole app reruns.
Can you take a look, and if that matches what you’re experiencing, it appears that issue has been fixed. To confirm, can you try installing streamlit-nightly and see if that resolves the issue? If that works, then the next official version of streamlit should include a fix for this bug.
If you don’t think this matches what you’re experiencing, and streamlit-nightly doesn’t fix it, could you look through the other open issues and if you don’t see a match would you be willing to open a new one?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.