Autoreload section of page in streamlit

Hi Team,

Is it possible to autoreload a section of page in streamlit? We are building a dashboard that displays information from API. My requirement is to poll this API at a time interval. A lot of documents related to this query mentions using a while loop over the method that polls the API regularly but that is not useful in our case as we have other sections displaying other information and having a while loop doesnt sound ideal. Similar to @st.cache is there a decorator that takes care of refreshing a function within a specific time interval?