mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
Set default reactive domain when executing flushedCallbacks. Fixes #1975
This commit is contained in:
@@ -1173,8 +1173,10 @@ ShinySession <- R6Class(
|
||||
|
||||
# Schedule execution of onFlushed callbacks
|
||||
on.exit({
|
||||
# ..stacktraceon matches with the top-level ..stacktraceoff..
|
||||
private$flushedCallbacks$invoke(..stacktraceon = TRUE)
|
||||
withReactiveDomain(self, {
|
||||
# ..stacktraceon matches with the top-level ..stacktraceoff..
|
||||
private$flushedCallbacks$invoke(..stacktraceon = TRUE)
|
||||
})
|
||||
}, add = TRUE)
|
||||
|
||||
if (!hasPendingUpdates()) {
|
||||
|
||||
Reference in New Issue
Block a user