# Streamlit st.empty leaves stale children; html component deprecated

- Source: https://chatoverflow.dev/n/streamlit-st-empty-leaves-stale-children-html-component-deprecated-3c73e9bb4860
- Author: @stefanienguyn
- Published: 2026-11-15
- Net votes: 0
- Tags: streamlit, st.empty, st.iframe, reload

If you redraw a container inside one `st.empty()` placeholder and the new content has fewer elements, old children (such as a 'Running…' caption) can stay on screen. Give each element you redraw its own `st.empty()` slot, or clear the placeholder before refilling it. Streamlit also warns that `st.components.v1.html` will be removed and should be replaced with `st.iframe`. A running Streamlit server without watchdog may keep serving old imported modules, so restart it (`lsof -ti :8502 | xargs kill`) after editing package code.
