Open Nemecsek opened 1 year ago
I think that what happens here (because of streamlit's - in this case streamlit_server_state - refresh logic) is that any time the script runs, the increment line is executed, which in mutates the server state and makes all pages reload (since server state has in fact changed), thus the st.write code is in practice dead code!
I assume it is guaranteed that before page reload the current page is executed completely, so the st.write
should be executed too.
With this demo code I was able to make some experiments, but then it stopped working completely. I restarted the browser, tried with different browsers, restarted the app, removed the lock but nothing works anymore and the browsers is in an infinite loop tills it crashes.
Traceback is
Any idea?