We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff535db commit d035e29Copy full SHA for d035e29
R/utils.R
@@ -54,12 +54,12 @@ make_c_call <- function(choices) {
54
#' @keywords internal
55
.finalize_session_bindings <- function(self, private) {
56
# Only finalize shiny session binding when there is an active session
57
- if (
58
- !is.null(getDefaultReactiveDomain()) &&
59
- !getDefaultReactiveDomain()$isEnded()
60
- ) {
61
- lapply(private$session_bindings, function(x) x$destroy())
62
- }
+ shiny::isolate({
+ rd <- getDefaultReactiveDomain()
+ if (!is.null(rd) && !rd$isEnded()) {
+ lapply(private$session_bindings, function(x) x$destroy())
+ }
+ })
63
invisible(NULL)
64
}
65
0 commit comments