Hi, I would like to share components, like a selectbox, across the different pages, in particular in the sidebar. In order to keep the selection across the pages I need to set a default index, the one corresponding to the last item selected.
The selection works fine the first time and is kept when switching from another page. In the same page, however, if the selection is changed more than once, it goes back to the previous value. One needs to repeat it twice for the change to work.
Here is a minimal example: GitHub - blenzi/st_multipage_test: Test of multipage app with streamlit and selectbox in sidebar . When changing the selector from A → B, it works fine. Now within in the same page, trying to do A → B → C, it goes back to B.
Any ideas ?
Thanks
