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

waiter_hide_on_render no longer working #79

Closed
PaulC91 opened this issue Jan 20, 2021 · 2 comments
Closed

waiter_hide_on_render no longer working #79

PaulC91 opened this issue Jan 20, 2021 · 2 comments

Comments

@PaulC91
Copy link

PaulC91 commented Jan 20, 2021

Hey John!

I've been using the waiter_hide_on_render(id) function in the method shown below to hide the opening waiter screen only when a certain output is rendered. It was previously working well but after recently upgrading the package it appears to have stopped working, with the waiter_show_on_load screen never being hidden.

Any help appreciated and thanks for the package (and all your others!).

library(shiny)
library(echarts4r)
library(waiter)

ui <- fluidPage(
  use_waiter(), 
  waiter_show_on_load(spin_fading_circles()),
  waiter_hide_on_render("plot"),
  echarts4rOutput("plot")
)

server <- function(input, output, session){
  data <- data.frame(x = rnorm(10, 5, 3), y = rnorm(10, 50, 12), z = rnorm(10, 50, 5))
  
  output$plot <- renderEcharts4r({
    data %>% 
      e_charts(x) %>% 
      e_scatter(y) %>%
      e_scatter(z)
  })
}

shinyApp(ui, server)
@JohnCoene
Copy link
Owner

Thanks for bringing this up. I just pushed a fix to Github, let me know if it works as expected.

@PaulC91
Copy link
Author

PaulC91 commented Jan 22, 2021

Hi John. Thanks for the rapid response! Working well again now.

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

No branches or pull requests

2 participants