blackary / st_pages

An experimental version of Streamlit Multi-Page Apps
MIT License
456 stars 76 forks source link

hide_pages is buggy: starts hidden, but reappears as soon as any page is accessed. #34

Closed victorccaldas closed 1 year ago

victorccaldas commented 1 year ago

Code:


show_pages(
        [
            Page("paginas/dashboard.py", "Dashboard", "๐Ÿ“Š"),

            Page("paginas/ferramentas.py", "Tools", "โš™๏ธ"),

            Page("paginas/docs.py", "Docs", "๐Ÿงพ"),

            Page("paginas/finance.py", "Finance", "๐Ÿ’ฒ")
        ]
    )

hide_pages(["Tools"])
blackary commented 1 year ago

You have to use hide_pages on every page that you want pages hidden from. It would be possible to make it permanent, but right now this is the behavior by design. I added an issue for the future if someone wants to add that new functionality https://github.com/blackary/st_pages/issues/35