St.navigation - changed behaviour (1.38.0 -> 1.39.0)

Hey there,

after updating streamlit from 1.38.0 to 1.39.0 to get the icon feature for popups I noticed a really annoying behaviour regarding st.navigation.
So far I build my whole navigation but set position to “hidden” as long as the user is not logged in.
After logging in, the navigation is beeing rebuild according to the users persmissions and position is set to “sidebar”.

However, changing the position does not work anymore after initialization:
position = “sidebar” if st.session_state.get(“password_correct”, False) else “hidden”
pg = st.navigation(page_dict, position=position)

Anyone else with similar issues?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.