While capture is paused, the application applies changes as usual. But
rewind does not record them. Use this around changes that your code
makes, and that the user must not step back into. Examples are a saved
session that you restore, or a URL bookmark that you apply.
Usage
rewind_pause(session = shiny::getDefaultReactiveDomain())
rewind_resume(session = shiny::getDefaultReactiveDomain())Examples
if (interactive()) {
library(shiny)
server <- function(input, output, session) {
rewind_enable()
rewind_pause()
# ... apply a saved bookmark here ...
rewind_resume()
}
}