I need to refresh data displayed in an infobox on a regular interval, but every time it updates it renders a new infobox making for an undesirable user experience.
I've tried using futures/promises for async processing but the renderinfobox still renders a new box on data update. Here's my code :
invalidateLater(30000)
results <-future({testFuture()})
return(value(results))
I would like to be able to update the underlying data of the infobox without dimming the ui element for the entire duration of the query.
Instead of re-rendering the infobox everytime the value changes, you can re-render just the title or the value of the infobox as I have shown by creating an output element. I have created an working example that refreshes the infobox to show current time at seconds level.
Do try out your code with this and let me know if this helps!