title: Passing data within Shiny Modules from Module 1 to Module 2
body: <p>I dont have a reproducible example as the question is more on how modules work. I am trying to understand how to pass some reactive function from one module to the next. I have received replies in the past about using ObserveEvent but they have not seem to work when I am using the reactive value in one module to perform some other operation in another module</p>
  
  <pre><code>module1 &lt;- function(input, output, session){
  
  data1&lt;-reactive({
    #some reacttive funcion that produces an output
  
  })
  data2&lt;-reactive({
    #some reacttive funcion that produces another output
  
  })  
  
  
  
  return(list(data1,data2))
  
  
    }
  
  module2 &lt;- function(input, output, session,data1){
  
  observe( data1(), {
  
    #perform some other functions here using data1().e.g reading or parsing data
  })
  
  
  }
  </code></pre>
  
  <p>So basically I have a module1 that returns two outputs from data1 and data2</p>
  
  <p>I want to use the value of data1 in module 2 and perform some new operation using that value.</p>
  
  <p>I have looked at other answers to similar questions here but I still dont understand them. If someone can help me explain this concept more clearly that would be of great help
  thanks for your help</p>