Sidebar logo disappears after fragment run_every period

I just upgraded to Streamlit v1.39.0 from 1.38.

The sidebar logo disappears if there is an st.fragment() with run_every, after the first fragment run_every period.

1 Like

Looks like this is the same issue as this one: Bad 'setIn' index : Issue with using fragments that do not render anything within multipage app

And a fix is imminent: [fix] MPA page layout resetting if page has fragment by sfc-gh-pchiu · Pull Request #9723 · streamlit/streamlit · GitHub

Hi - I upgraded from 1.38.0 and experienced the same bug. Have just upgraded to 1.40.1 and can confirm that this is still occurring for me… any interactive event decorated by st.fragment makes the image displayed by st.logo disappear. The logo will only return when a full page reload is executed.

#9723 was originally going to be in 1.40.0, but it was reverted before release. I believe it should be expected in 1.41.0 now.

This issue still exists on 1.41.1 for me with multipage app. I think [fix] Preserve page layout across pages and app reruns by sfc-gh-pchiu · Pull Request #9759 · streamlit/streamlit · GitHub is working on propagating the fix in #9723 to multipage apps?

Same here, just updated to 1.41.1

+1 on this issue. Running v1.41.1.

Only an issue when I’m using st.logo. Logos/images added to sidebar with CSS does not dissapear.

A temporary fix for me, is adding st.logo() within every fragment in my app.

1 Like

Can you please share the CSS to add a logo to sidebar?

Hi Streamlit. Excited about the new update. However, I can confirm that 1.42.0 still does not fix the disappearing sidebar logo when a fragment is run…

Hi @eric.c adn @kmcgrady
I see that there was a fix and it was reverted due to other issues related to the MPA.
Do you have a rough timeline of when this might be fixed? I see that #9759 hasn’t had any pushes to it for 3 months.
Thanks!

streamlit version: 1.42