1. Learn
  2. /
  3. Courses
  4. /
  5. Building Web Applications with Shiny in R

Connected

Exercise

Stop reactions with isolate()

Ordinarily, the simple act of reading a reactive value is sufficient to set up a relationship, where a change to the reactive value will cause the calling expression to re-execute. The isolate() function allows an expression to read a reactive value without triggering re-execution when its value changes.

In this exercise, you will use the isolate() function to stop reactive flow.

Instructions

100 XP
  • Update the server code so that the text output updates only when user changes the height or weight, and NOT the name.