Closed daattali closed 6 days ago
This is problematic because hidePageSpinner() assumes there is only one on the page, and removes only one. The problem can be seen with this code:
hidePageSpinner()
library(shiny) ui <- fluidPage() server <- function(input, output, session) { shinycssloaders::showPageSpinner() Sys.sleep(0.5) shinycssloaders::showPageSpinner(color = "red") Sys.sleep(0.5) shinycssloaders::hidePageSpinner() } shinyApp(ui, server)
Even though hide is called at the end, there is still a spinner on the page.
This is problematic because
hidePageSpinner()
assumes there is only one on the page, and removes only one. The problem can be seen with this code:Even though hide is called at the end, there is still a spinner on the page.