Skip to content

Dashboard with multiple tabs (shiny.router), all tabs load on start #116

Answered by jakubsob
shahreyar-abeer asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shahreyar-abeer,

It's hard to tell what exactly causes your app to slow down without an example, but I've created a simple app that I think illustrates the issue. Let me know if this is what you're struggling with.

library(shiny)
library(shiny.fluent)
library(shiny.router)

router <- make_router(
  route(
    "/",
    tagList(
      Label("Home page")
    )
  ),
  route(
    "hidden",
    tagList(
      Label("Hidden page"),
      textOutput("text")
    ),
    server = function(input, output, session) {
      output$text <- renderText({
        Sys.sleep(5)
        "Delayed text"
      })
    }
  )
)

ui <- fluentPage(router$ui)
server <- function(input, output, session) {
  router$se…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shahreyar-abeer
Comment options

@rodrigoestrellac
Comment options

Answer selected by shahreyar-abeer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants