From 578f7cdff3d452e76e18b6292c2ae7c24e045f37 Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Fri, 15 Mar 2024 17:38:25 -0500 Subject: [PATCH] Close #1131. Pass the relevant shinysession from renderFunc to snapshotPreprocessInput (#1132) --- R/shiny.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/shiny.R b/R/shiny.R index 5ab541a7..35615703 100644 --- a/R/shiny.R +++ b/R/shiny.R @@ -182,7 +182,7 @@ renderDataTable = function( uiFunc = dataTableOutput, renderFunc = function(shinysession, name, ...) { domain = tempVarsPromiseDomain(outputInfoEnv, outputName = name, session = shinysession) - removeTimestampFromSnapshot(name) + removeTimestampFromSnapshot(name, shinysession) promises::with_promise_domain(domain, renderFunc()) }, outputArgs = outputArgs, @@ -231,11 +231,11 @@ setAll = function(lst, env) { invisible() } -removeTimestampFromSnapshot = function(name) { +removeTimestampFromSnapshot = function(name, session) { shiny::snapshotPreprocessInput(paste0(name, "_state"), function(value) { value$time <- NULL value - }) + }, session) } # This promise domain is needed to set/unset temporary variables in