Genie Discord forum

Author Avatarstreamwader
9/22/2023, 1:28:56 AM

Is there a way to have a chart component update itself forever without limiting user interaction with other components? For example, the equivalent of dcc_interval of Dash.jl or invoking setInterval in React?

Author AvatarPere
9/22/2023, 7:59:35 AM

You could spawn an asynchronous task within a handler. When the task changes a reactive variable, it's value will be automatically updated throughout the app. Here's an example https://learn.genieframework.com/examples/reactive-ui/asynchronous-task

We also use this in the Lorenz demo https://learn.genieframework.com/app-gallery/