r4ds / shinyslack

Integrate Slack and Shiny
Other
15 stars 3 forks source link

Wrap server? #22

Open jonthegeek opened 2 years ago

jonthegeek commented 2 years ago

Is it possible for me to replace server with a function that passes things on to server only when the cookie is validated? That would eliminate the need to ever use check_login.

jonthegeek commented 2 years ago

Instead of wrapping the whole server, provide a wrapper for slackverse functions. The wrapper takes input and team_id as extra arguments, and creates something that's reactive on the cookie object (and only calls the actual function when the cookie is set).