When there are results from this session (for example, after calibration), the browser asks once
before the tab is closed or reloaded.
Turn it on and off in the server based on the result:
shiny::observe(kit_unload_guard(!is.null(result()))).
Usage
kit_unload_guard(on = TRUE, session = shiny::getDefaultReactiveDomain())Examples
if (interactive()) kit_unload_guard(TRUE)