Skip to contents

Enable reactlog functionality and remove data saved in temporary directory when app stops.

Usage

set_filtering_by_id()

Value

Used for side effect - enable reactlog

and set up cleaning in temporary directory.

Details

This function must be used outside of the server part of the app.

Examples

if (FALSE) {

library(shiny)

shinybreakpoint::set_filtering_by_id() # TODO: remove

appServer <- function(input, output, session) {
  observe({
    input$num
  }, label = "observe_print_num_input")
}

shinyApp(
  ui = fluidPage(
    theme = bslib::bs_theme(5),
    numericInput("num", "Num", 0)
  ),
  server = function(input, output, session) {
    shinybreakpoint::shinybreakpointServer() # TODO: remove
    appServer(input, output, session)
  }
)
}