From 33376c2220c42bc320a7dced44ebda759c50565d Mon Sep 17 00:00:00 2001 From: Sajjad Aemmi Date: Sun, 7 Apr 2024 16:14:50 +0330 Subject: [PATCH] replace `st.experimental_rerun` with `st.rerun` --- streamlit_login_auth_ui/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamlit_login_auth_ui/widgets.py b/streamlit_login_auth_ui/widgets.py index 739f129..2e4cf24 100644 --- a/streamlit_login_auth_ui/widgets.py +++ b/streamlit_login_auth_ui/widgets.py @@ -116,7 +116,7 @@ def login_widget(self) -> None: self.cookies['__streamlit_login_signup_ui_username__'] = username self.cookies.save() del_login.empty() - st.experimental_rerun() + st.rerun() def animation(self) -> None: @@ -243,7 +243,7 @@ def logout_widget(self) -> None: st.session_state['LOGGED_IN'] = False self.cookies['__streamlit_login_signup_ui_username__'] = '1c9a923f-fb21-4a91-b3f3-5f18e3f01182' del_logout.empty() - st.experimental_rerun() + st.rerun() def nav_sidebar(self):