-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Inconsistent behavior of busy indicators for different outputs: tableOutput()
, reactableOutput()
, textOutput()
#4115
Comments
Similarly, no busy indicators is displayed at all for visNetworkOutput. |
Thanks for opening this issue and for including a reprex @gsmolinski! Smaller reprexThe same reprex as above, edited to remove intermediate reactive objects. [shinylive.io link](https://shinylive.io/r/editor/#code=NobwRAdghgtgpmAXGKAHVA6ASmANGAYwHsIAXOMpMAGwEsAjAJykYE8AKAZwAtaJWAlAB0IdJiw6M4UAqSj1qcYRBEBXWgAIAPAFoNAM2rqAJgAUoAczjsRGjas5wAQg9YBJCMdoEopIo052AVxbDRlSWhIXUj8IGzBGVQgAfVIFITwNDKwkjTkFOAzg0PDIiGjY+MSUqXD5RQzcLLAciA1a2XrCsGK2sNkyipIqpNS4AA9SRubWvImpnpC+8kmAeVVSVA34lYXeu0MTLCIAdxs+u2IjGDiANib8xXXN7Yy06iL9uw0r1Rv2e7taSdArPLakKqpdI9ZR2ZTKESORgANzgjG0en0SQGwz44KaRA2+I0jk4nDKAg0IFChJepAAJLsMUDPGiACrzdjUi5AgCO7DxG3p1TGk1h3wAyqxOBhOIo4Kh2ABmcV2N5wTgLUIAX3FNKJQvezKkrMYbK6XNCdik-MFDJF71VGilMrlcAVyqd3GkxnYMFIPgCTQAjAAGcW60L6unCqHUY0UYxorDAx7WbnfPkCiDg4WjDppp0u2XyxUqq1AuoFP0BlicCPKbUiRG8fgAQXQ7HUTSRqMYyjA2oAukA library(shiny)
library(reactable)
ui <- fluidPage(
useBusyIndicators(),
actionButton("run_tbl", "Run table"),
actionButton("run_reactable", "Run reactable"),
actionButton("run_text", "Run text"),
textOutput("text"),
fluidRow(
column(6, tableOutput("tbl")),
column(6, reactableOutput("r_tbl"))
)
)
server <- function(input, output, session) {
output$text <- renderText({
req(input$run_text)
Sys.sleep(3)
"test"
})
output$tbl <- renderTable({
req(input$run_tbl)
Sys.sleep(3)
head(mtcars, 10)
})
output$r_tbl <- renderReactable({
req(input$run_reactable)
Sys.sleep(3)
reactable(mtcars)
})
}
shinyApp(ui, server) The reason that you don't see the spinner for the |
I moved the
@AkedoMakona This might be the same htmlwidgets issue as reactable. I'd be happy to look into it if you could please include a reproducible example. |
System details
Output of
sessionInfo()
:Example application or steps to reproduce the problem
Run the code below and click buttons, you should see:
Describe the problem in detail
I didn't check other outputs. For me it looks like a bug or at least lack of the feature - I would expect that (1) busy indicators will work the same way no matter what output is used; (2) busy indicator will be visible each time button is clicked. I have checked this on RStudio Viewer, Chrome and Edge.
As a side note - I also see that busy indicator is not faded on reactable output, but is faded on text output when button is clicked second or more times (i.e. is not faded only for the first time). I think it shouldn't be faded.
The text was updated successfully, but these errors were encountered: