@Elizashahh i also didn’t add, you start a periodic timer (interval) to start fetching new data. then call
updateDom() when the data is ready to be used for the ui.

or start a one time timer, fetch data, call updateDom, then start another timer. this might cause a little drift in when you update.