esqLABS / 0buzz

MIT License
0 stars 0 forks source link

Render results plot **before** destroying loading screen #12

Closed Felixmil closed 1 week ago

Felixmil commented 1 week ago

Right now, loading screen is destroyed, then the result_screen is created (in which the plot is generated).

#main.R
    observeEvent(app_data$simulation_results, {
      message("Simulation result received. Destroying intro screen.")
      app_data$destroy_intro_screen <- TRUE
      result_screen$server("result_screen", app_data)
    })

It would be better to destroy the loading screen only after the plot is rendered.