Is there a way to determine what caused a reload of the app? So often, I’m not doing anything on my app but the browser window is open, and suddenly it’ll just reload the whole app. This is unnecessary and I’m not doing anything to cause it.
Is there a way to determine what triggered it? Or does anyone know? Is there just a stale/refresh time for apps in the Cloud?
Thanks for sharing this issue. Do you have Streamlit pinned to a specific version? Community Cloud shouldn’t be reloading your app, but this has been an issue with some older version of Streamlit in the past (I believe we fixed the underlying issue in version 1.11.)
Thanks for the reply, I have no idea why I didn’t get a notification that you’d done so. I just caught this reload happening again and had forgotten, so I came back to check the post and see you had replied!
My requirements.txt simply has streamlit as a library, no pinned version. So I’m running whatever the Streamlit Cloud installs. It’s hitting our databases over and over on every reload, so I’d love to find a cause and solution.
Any chance you’re able to share the app / GitHub repo (or a limited version that reproduces the reload behavior)? @Alexandru_Toader any idea what might be going on here?
I can’t, since it is proprietary company code & data, but I can tell you that we have a few dashes running on the Cloud and they all do it, despite very different design flows. I think the only common element in them is that I use the expanders, and I have another post on the forums here about how an upload button in an expander causes it to reload. Perhaps related? Perhaps something to do with expanders? I’m totally grasping at straws for patterns.
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.