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

loadingState() will not stop #50

Open
leungi opened this issue Jul 27, 2019 · 2 comments
Open

loadingState() will not stop #50

leungi opened this issue Jul 27, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@leungi
Copy link

leungi commented Jul 27, 2019

Reproducible example below; read documentation, but can't find a way to turn off loadingState().

Expected: after 10 secs, spinner will fade away.

Outcome: plot renders after 10 secs, but spinner still shows

if (interactive()) {
  library(shiny)
  library(shinydashboard)
  library(shinydashboardPlus)
  shinyApp(
    ui = dashboardPage(
      dashboardHeader(),
      dashboardSidebar(),
      dashboardBody(
        box(
          title = "loading spinner",
          loadingState(),
          plotOutput("plot2")
        )
      ),
      title = "Loading State"
    ),
    server = function(input, output) {
      output$plot2 <- renderPlot({
        Sys.sleep(10)
        plot(iris)
      }) 
    }
  )
}
@DivadNojnarg DivadNojnarg added the enhancement New feature or request label Oct 3, 2019
@DivadNojnarg
Copy link
Member

This function is useless for some reasons:

  • no javascript bindings
  • there are better loaders (shinycssloaders, waiter, ...)

Expect this to be deleted in a near release

@leungi
Copy link
Author

leungi commented Oct 7, 2019

Noted; thanks.

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

No branches or pull requests

2 participants