Is it possible to return reactives from a module?

Hi, I try to return some reactive expressions from one module and pass to another module. I know that such a thing is quite easy when passing inputs e.g.:

 return(
    list(
      btn1 = reactive({input$buttonX}),
      btn2 = reactive({input$buttonY}))
   )

However, I can't return and pass reactive expressions this way, e.g.:

react1 <- reactiveVal()
react2 <- reactiveValues(state = TRUE)

  return(
    list(
      x = react1,
      y = react2
    )
   )

When I return reactives this way then in another module the outcome is just... plain text, in this case it's for example reactiveValues(state = TRUE) . It's really strange. This method of returning reactives doesn't work in my case.

Is it possible to return already existing reactives in any sensible way?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.