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

Busy indicator is only shown for 0.25s #4068

Closed
cpsievert opened this issue May 28, 2024 · 0 comments · Fixed by #4069
Closed

Busy indicator is only shown for 0.25s #4068

cpsievert opened this issue May 28, 2024 · 0 comments · Fixed by #4069

Comments

@cpsievert
Copy link
Collaborator

cpsievert commented May 28, 2024

The spinner only appears for 0.25s, then goes away. Problem introduced by #4062

library(shiny)

ui <- fluidPage(
  useBusyIndicators(),
  actionButton("btn", "Re-plot"),
  plotOutput("p")
)

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

  output$p <- renderPlot({
    input$btn
    Sys.sleep(4)
    plot(1)
  })

}

shinyApp(ui, server)
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

Successfully merging a pull request may close this issue.

1 participant