I am late to the party, but even though I discovered Shiny about 4 years ago and have developed a few apps since then, I just recently watched the seminal talk from Joe Cheng at the Shiny Dev Conference in 2016. I must say that it really opened my eyes to many truths. The second and third takeaways given by him during the talk were:
- Prefer using reactive expressions to model calculations over using observers to set reactive variables
- Seriously, prefer using reactive expressions to model calculations over using observers to set reactive variables
This leads me to the following questions to all Shiny experts here. Is the
reactiveValues() function completely useless? What I mean is can all reactivity needs for assigning values in a shiny app be satisfied with the use of
eventReactive() exclusively? Or is
reactiveValues() inside observers similar to
for loops in R? Use it only when there is no other option?