Cannot trigger empty on button on_click callback but can do so using straight forward code

Nope, the old content is still hanging around. Went as far as setting the sleep to 1.0, no difference. Which in my mind doesnโ€™t feel like some racy bug where the empty fails to update the state before the re-render loop, think something is just fundamentally not working with the callbacks? In general, albeit in my very extensive streamlit usage of grand 2 days, Iโ€™ve found that when Streamlit state modification within the main scope works as expected but when state mod move into function scopes ie. into functions, things become a little fcky, as per described here as well: Buttons Within a Class Don't Trigger When a Key is Added