# Streamlit Auto Refresh issue and state loading

**URL:** <https://discuss.streamlit.io/t/streamlit-auto-refresh-issue-and-state-loading/113076>\
**Category:** Using Streamlit\
**Tags:** discussion\
**Created:** [May 20, 2025, 11:26pm UTC](https://discuss.streamlit.io/t/streamlit-auto-refresh-issue-and-state-loading/113076 "2025-05-20T23:26:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aryaman](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/aryaman/32/64110_2.png) [@Aryaman](https://discuss.streamlit.io/u/Aryaman)\
**Post date:** [May 20, 2025, 11:26pm UTC](https://discuss.streamlit.io/t/streamlit-auto-refresh-issue-and-state-loading/113076/1 "2025-05-20T23:26:06Z")

</div>

I am trying to use streamlit for my ai chat bot system but I observed that while an interactive session between user and bot the streamlit screen get’s refresh and the chat are lost.  
It is very annoying a lot of time.  
Can someone plese tell me how to solve it , this autorefresh happen in 30 min to 1 hr. Once it happen then in 1-2 min again happened

also in streamlit we are facing an issue of state loading. we need to rerun everytime to change state.  
Any update from streamlit team when this feature will be added

---

<div class="post-metadata">

**Author:** ![oliverjia](https://avatars.discourse-cdn.com/v4/letter/o/d26b3c/32.png) [@oliverjia](https://discuss.streamlit.io/u/oliverjia)\
**Post date:** [May 21, 2025, 6:44am UTC](https://discuss.streamlit.io/t/streamlit-auto-refresh-issue-and-state-loading/113076/2 "2025-05-21T06:44:50Z")

</div>

Can you share your code?

---

<div class="post-metadata">

**Author:** ![Aryaman](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/aryaman/32/64110_2.png) [@Aryaman](https://discuss.streamlit.io/u/Aryaman)\
**Post date:** [May 29, 2025, 8:18am UTC](https://discuss.streamlit.io/t/streamlit-auto-refresh-issue-and-state-loading/113076/3 "2025-05-29T08:18:36Z")

</div>

Sorry I can’t

---

<div class="post-metadata">

**Author:** ![Badash](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/badash/32/64524_2.png) [@Badash](https://discuss.streamlit.io/u/Badash)\
**Post date:** [May 29, 2025, 8:34am UTC](https://discuss.streamlit.io/t/streamlit-auto-refresh-issue-and-state-loading/113076/4 "2025-05-29T08:34:42Z")

</div>

Same issue in firebase studio on android. One of my devices refreshes every time. Another one randomly but it’s usable although refreshes near the ned of a project right when we are nearly finished. Extremely frustrating since android is already hard enough to use in firebase studio

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [November 25, 2025, 8:35am UTC](https://discuss.streamlit.io/t/streamlit-auto-refresh-issue-and-state-loading/113076/5 "2025-11-25T08:35:16Z")

</div>

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