is_page: Is page

Description Usage Arguments

View source: R/router.R

Description

Tell the reactive chain to halt if we're not on the specified page. Useful for making sure we don't waste cycles re-rendering the UI for pages that are not currently displayed.

Usage

1
is_page(page, session = shiny::getDefaultReactiveDomain(), ...)

Arguments

page

The page to display. Should match one of the paths sent to the

session

Shiny session

...

Other parameters are sent through to shiny::req() router.


Appsilon/shiny.router documentation built on May 3, 2021, 5:33 a.m.