Streamlit Folium st_folium

Hi,
I am facing an issue with st_folium component, when I refresh the page the map disappears until I rerun the app or interact with app using any widget, below is the reproducible example.

Streamlit version : 1.39.0
Python version : 3.11

def create_map_dummy(gdf):
location = [gdf[‘lat’].mean(), gdf[‘long’].mean()]
m = folium.Map(location=location)
st_map = st_folium(m, returned_objects=[“last_active_drawing”], use_container_width=True , key = “new”)
# folium_static(m) (folium_static works fine but I want st_folium because its bi-directional)

def main():
create_map_dummy(gdf)

Any help will be appreciated.

Regards,
Paracha