mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
should pass a session object to invalidateLater()
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
shinyServer(function(input, output) {
|
||||
shinyServer(function(input, output, session) {
|
||||
output$currentTime <- renderText({
|
||||
invalidateLater(1000)
|
||||
invalidateLater(1000, session)
|
||||
paste("The current time is", Sys.time())
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user