Hey everyone! I’m having a problem with st.Page(), when I’m loading a page it’s displaying the previous page content and then scrolling down below it is the current selected page content, in some pages it’s even displaying multiple pages and some it doesn’t display anything, I’m using st.rerun() at the start of the page which seems to fix it but I wanted to see if there is a more efficient way of doing it
# In file app.py
page1 = st.Page(pages/page1)
page2 = st.Page(pages/page2)
page3 = st.Page(pages/page3)
# when running page 2 I see page1 content first and below it page 2
nav = st.navigation(page1,page2,page3)
nav.run()
# on pages I just run the main function at the button of the pages
main_page1()