Skip to content

Commit

Permalink
clean up module server return example snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
rpodcast committed Sep 4, 2023
1 parent 9f9f1c5 commit b1847cb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions materials/d1-02-structure/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -444,17 +444,7 @@ set_picker_server <- function(id, sets_rv) {
moduleServer(
id,
function(input, output, session) {
set_choices <- reactive({
# do something with sets_rv
})
observeEvent(set_choices(), {
req(set_choices())
updateSelectInput(
"set_num",
choices = set_choices()
)
})
# ...
set_selection <- reactive({
input$set_num
Expand Down

0 comments on commit b1847cb

Please sign in to comment.