is_page: Is page

View source: R/router.R

is_pageR Documentation

Is page

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

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.


shiny.router documentation built on April 18, 2023, 9:08 a.m.