Skip to content

Commit 6f4c72b

Browse files
authored
Merge pull request #8 from lgnbhl/example-shiny.fluent-waiter
use waiter to add loading screen when shiny server is busy…
2 parents 6f8d3f4 + 9c54424 commit 6f4c72b

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

inst/examples/shiny.fluent/app/main.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ ui <- function(id) {
1111
ns <- shiny::NS(id)
1212
shiny::tagList(
1313
shiny.fluent::fluentPage(
14+
waiter::use_waiter(),
15+
waiter::waiterOnBusy(
16+
color = "#C7C6C6",
17+
html = shiny::tagList(
18+
waiter::spin_fading_circles(),
19+
"Fetching OpenDota API data and creating page..."
20+
),
21+
fadeout = TRUE
22+
),
1423
reactRouter::HashRouter(
1524
reactRouter::Routes(
1625
reactRouter::Route(

inst/examples/shiny.fluent/dependencies.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ library(httr)
66
library(shiny.fluent)
77
library(reactRouter)
88
library(stringdist)
9-
library(echarts4r)
9+
library(echarts4r)
10+
library(waiter)

0 commit comments

Comments
 (0)