I recently tried taking some of my more complex Streamlit functions and placing them into a separate file so that they could be imported as a module and used in multiple projects, but this has caused an unexpected bug. Whenever I use one of the interactive widgets that was created in an imported function, such as a multiselect, it immediately resets to its default state as the app is re-running. Is there any way to fix this behavior?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Bug causing widget reset | 10 | 1710 | February 10, 2024 | |
Strange and Subtle Refresh Streamlit Bugs | 19 | 9581 | March 4, 2024 | |
Streamlit App refreshes and resets widget values to default when user edits a value in an input widget | 7 | 2126 | December 7, 2023 | |
Widget behavior: a notable bugfix in Streamlit 1.27 and a new guide in docs | 1 | 668 | April 1, 2024 | |
Load different multiselect default values | 4 | 1167 | April 14, 2024 |