daattali / shinycssloaders

⌛ Add loading animations to a Shiny output while it's recalculating
https://daattali.com/shiny/shinycssloaders-demo/
Other
395 stars 45 forks source link

Require double clicking on buttons #50

Closed ocelhay closed 3 years ago

ocelhay commented 4 years ago

On several different platforms (R 3.6.3 on Windows, macOS), this shiny app https://github.com/ocelhay/como will works as expected using shinycssloaders v2.0 (https://github.com/daattali/shinycssloaders/commit/279f02998ac193307b9993846ab68856817f06de) but requires double clicking on buttons (e.g. Run Baseline) in order to see results when using shinycssloaders following commit (https://github.com/daattali/shinycssloaders/commit/8ed49e125a2baa402851a942f1034f36b33d7917).

daattali commented 4 years ago

Hi @ocelhay, if you believe there's a bug, please create and share a minimal reproducible example that shows the issue.

ocelhay commented 4 years ago

Thanks @daattali. I am working on that.

I have already identified that it's related to the outputs with withSpinner() that are inside conditionalPanel("output.status_app_output == 'a string" with output$status_app_output <- reactive(status_app$status); outputOptions(output, "status_app_output", suspendWhenHidden = FALSE).

This would work with shinycssloaders v2.0 but not more recent versions.

daattali commented 4 years ago

Great, sounds like you're getting closer to a small reprex, thanks!

daattali commented 4 years ago

@ocelhay have you been able to get a small reproducible example?

ocelhay commented 3 years ago

@daattali couldn't find the time to create one. Sorry for this. Better close it for now.