Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flushReact should be called after app loads? #1013

Closed
jcheng5 opened this issue Nov 16, 2015 · 1 comment
Closed

flushReact should be called after app loads? #1013

jcheng5 opened this issue Nov 16, 2015 · 1 comment
Assignees

Comments

@jcheng5
Copy link
Member

jcheng5 commented Nov 16, 2015

library(shiny)

observe({
    stopApp()
})

ui <- fluidPage()

server <- function(input, output, session) {
}

shinyApp(ui, server)

I'd expect this Shiny app to either exit immediately, or less likely, not at all (because stopApp() somehow gets called before the app starts). What I wouldn't expect is what actually happens: the app exits when the first user connects.

@jcheng5
Copy link
Member Author

jcheng5 commented Aug 10, 2016

Call scheduleFlush() right before entering the while-loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants