Skip to content

Commit 578f7cd

Browse files
authored
Close #1131. Pass the relevant shinysession from renderFunc to snapshotPreprocessInput (#1132)
1 parent 63517cb commit 578f7cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/shiny.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ renderDataTable = function(
182182
uiFunc = dataTableOutput,
183183
renderFunc = function(shinysession, name, ...) {
184184
domain = tempVarsPromiseDomain(outputInfoEnv, outputName = name, session = shinysession)
185-
removeTimestampFromSnapshot(name)
185+
removeTimestampFromSnapshot(name, shinysession)
186186
promises::with_promise_domain(domain, renderFunc())
187187
},
188188
outputArgs = outputArgs,
@@ -231,11 +231,11 @@ setAll = function(lst, env) {
231231
invisible()
232232
}
233233

234-
removeTimestampFromSnapshot = function(name) {
234+
removeTimestampFromSnapshot = function(name, session) {
235235
shiny::snapshotPreprocessInput(paste0(name, "_state"), function(value) {
236236
value$time <- NULL
237237
value
238-
})
238+
}, session)
239239
}
240240

241241
# This promise domain is needed to set/unset temporary variables in

0 commit comments

Comments
 (0)