Reference Semantics (shiny)

If you are working in the server function of the app.

library(shiny)

reactiveConsole(TRUE)

You can copy the value of a reactive value to new object.

b1 <- reactiveValues(x = 10)

b2 <- b1

But if you change the original reactive variable.

b1$x <- 20

Then the copy also changes.

b2$x
## [1] 20