You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Currently, the component only accepts static lists
I am working on a fix to enable custom values. Please star the repo if you liked streamlit-tags
I believe that's how Streamlit works. It hashes component based on all initial values - labels, starting values, options list, key, etc. If any of that changes - Streamlit treats the component as a new one, thus, refreshes it completely. Streamlit works like this for its core components, but I'm pretty sure 3rd party components are treated in the same way, judging from my experience.
That's one of the reasons, why selected value is stored in session_state, if component key is specified - to be able to programmatically change selected item / value (before component is rendered). Not all 3rd party components support that though.
Describe the bug
Component keeps refreshing when using dynamic custom values
To Reproduce
The text was updated successfully, but these errors were encountered: