As per Force Reload of Webpage, Iām trying to refresh/reload my page calling the snippet after st.button(): streamlit_js_eval(js_expressions="parent.window.location.reload()"). However, it fails to do so and all of my previous my session_state + widget inputs still remain. I couldāve sworn this worked when I first tried it out, but Iām not sure if its because of the version of streamlit (v1.26.0) and streamlit-js-eval (0.1.5) Iām using in my environment.
That is expected. st.rerun does programatically the same than selecting āRerunā in the hamburger menu, it reruns the script within the same session. Indeed very different from the browser reloading the page, that starts a new session. For that you do need JS.
Unfortunately I donāt know how to fix yous JS issue.