Skip to content
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

Option menu not displayed on page reload #68

Open
Nzel96 opened this issue Apr 22, 2024 · 1 comment
Open

Option menu not displayed on page reload #68

Nzel96 opened this issue Apr 22, 2024 · 1 comment

Comments

@Nzel96
Copy link

Nzel96 commented Apr 22, 2024

I am running into an issue when I reload the page the option_menu disappears.
I am not getting any errors of any message.
Can anyone help with this issue?

Here is my environment info
streamlit==1.33.0
streamlit-option-menu==0.3.12

@KeanuReeves007
Copy link

Yes, I've experienced this issue as well. My authentication is implemented through streamlit_authenticator. I've observed that when I reload the page, the logout in the session_state is None. At that point, I call st.run().

eg:
if st.session_state["authentication_status"] and st.session_state["logout"] is None: st.session_state["logout"] = True st.rerun()

This should solve the problem, although I'm not sure what caused it. I hope this helps you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants