In the NEWS tab crawling function, if I tap the run buttons multiple times, the computer will initiate multiple crawling sessions. This is a potential risk of crash.
As anyone, I want to have a run button lock, so the button will be unavailable if there is a crawling happening.
I've done some research, and the best way to achieve this is to use st.session_state, link. The st.session_state will store the variable and reflect on the view whenever it's changed or triggered.
In the NEWS tab crawling function, if I tap the run buttons multiple times, the computer will initiate multiple crawling sessions. This is a potential risk of crash.
As anyone, I want to have a run button lock, so the button will be unavailable if there is a crawling happening.
I've done some research, and the best way to achieve this is to use
st.session_state
, link. Thest.session_state
will store the variable and reflect on the view whenever it's changed or triggered.@alex308248 could you help with this user story