Iโm having an issue with st.popover(). The process inside the popover logic is being executed immediately, but I need it to process only after clicking on the popover.
@Gowtham As @Goyo stated the backend right now does not know anything about the UI-state. We have an open GitHub issue here: st.tabs: know and control state ยท Issue #6004 ยท streamlit/streamlit ยท GitHub and it would be best to upvote it to increase awareness of the demand It already has quite some upvotes and it is on our radar to tackle, but work for it is not scheduled yet. But we will hopefully make this possible soon! See especially @Johannesโ update comment in the bottom of the thread.
Note that the GitHub issue is for tabs, but it is the same principle for popover, expander, etc. and I would assume that we update all of them when we start on the project.