execution stack updates

shiny
#1

Sorry for not know the correct language, which also prohibits from finding the answer, which must have been asked already...

It seems the execution of the reactives is serial and there is not much clean-up in-between done. I.e. if a value changes multiple times while the result is still being produced the whole stack will be executed one after the other. (I hope I am clear enough :wink: )
My question: is there a way to avoid this and potentially ask shiny to wait for X ms and then work only on the latest values?

Thanks,

Bernd

0 Likes

#2

Hi @baj, I'm not sure I completely understand, but I think you may be looking for debounce() or throttle() -- https://shiny.rstudio.com/reference/shiny/1.0.4/debounce.html

0 Likes