-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code executed 3 times when login #33
Comments
Hi @kinokocorp, I believe this is related to the extra_streamlit_components package that reads the reauthentication cookie. Thank you for pointing this out, as soon as a robust solution is found I will push a new release. |
Hi @mkhorasani, i am having similar problem with Streamlit-Authenticator, the code is executed multiple times.
main.py
When i login, text "hello" print two times. It look likes there are two threads calling in same time. |
Hi @mvn-hoangnguyen-hn, Hi @mkhorasani, Any help is welcome. |
Any updates on this issue? |
Every time the session state changes, streamlit reruns the page, so that's probably what's going on, making the code run over and over again, I'm going to try to fix it |
Hello,
When you log in with Streamlit-Authenticator, the code is executed 3 times.
I added a print('test') command and I can see 'test' 3 times in the console.
I'm using version 0.2.1.
After logging in, the problem doesn't occur again.
The text was updated successfully, but these errors were encountered: