What is the purpose/function of the output parameter in the server function? #1993
-
| 
         In a starting template created by the   | 
  
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
| 
         Coming back to this, I must have made a mistake when I changed the name of the output parameter. I have since learned that the output parameter is used implicitly/magically via the function decorators. Would be happy if someone who knows better can confirm or correct this statement.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         
  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         @cpsievert that sounds quite interesting actually. I would prefer to wire up the outputs explicitly. Can you show me an example of what that would look like?  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         @cpsievert sorry to bug you about this, but it would be really great to have a way to wire up the outputs explicitly. Is there an example of this somewhere?  | 
  
Beta Was this translation helpful? Give feedback.
output(or really, the 2nd parameter of the server function) started out as a required parameter, but is now optional, and is generally only useful if you want to specify an output ID using a string (instead of using the name of provided to the@renderfunction)