Delay recomputation of components until "stable"
Hey,
is there a way to postpone the recompotation of a (or all) components until the system is stable?
If I change multiple reactive variables after clicking a button, a component using these reactive variables may be rebuild multiple times. I.e. the component seems to be rebuild instantly when calling
reactive_variable.set()
, even if the calling method has not been fully run yet. If the recomputation takes some time (e.g. because a matplotlib-plot is created), the performance drops significantly due to creating interim stages of the component.
Thank you in advance1 Reply
Typically in these cases, I would use an "update" button, and only refresh the expensive widgets when the button is pressed