Skip to content

Commit

Permalink
applies suspendWhenHidden = FALSE to all renderUIs to containers over…
Browse files Browse the repository at this point in the history
… selector

selectors is contained in 3 different renderUIs, selector, ui and dressing room
  • Loading branch information
zsigmas committed Aug 13, 2024
1 parent d122bfd commit 0036995
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions R/dressing_room.R
Original file line number Diff line number Diff line change
Expand Up @@ -1246,8 +1246,11 @@ app_creator_feedback_server <- function(id, warning_messages, error_messages, ui
if (length(error_messages()) == 0) res <- append(res, list(ui))
return(res)
})
shiny::outputOptions(output, "ui", suspendWhenHidden = FALSE)
}
)



return(module)
}
8 changes: 7 additions & 1 deletion R/mod_patient_profile.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,25 @@ mod_patient_profile_server <- function(id, subject_level_dataset, extra_datasets
)
)
}
message("PAPO UI")
return(res)
})

output[["selector"]] <- shiny::renderUI({
shiny::outputOptions(output, "ui", suspendWhenHidden = FALSE)

output[["selector"]] <- shiny::renderUI({
subject_level_dataset <- subject_level_dataset()
shiny::req(subject_level_dataset, cancelOutput = TRUE)
message("PAPO SELECTOR")
shiny::selectInput(ns("patient_selector"),
label = "Select Patient ID:",
selected = input[["patient_selector"]],
choices = unique(subject_level_dataset[[subjid_var]])
)
})

shiny::outputOptions(output, "selector", suspendWhenHidden = FALSE)

# change selected patient based on sender_ids
if (!is.null(sender_ids)) {
lapply(sender_ids, function(x) {
Expand Down

0 comments on commit 0036995

Please sign in to comment.