The keyboard shortcuts and rewind_buttons() are sufficient for most
applications. Use these functions to move through the history from your
own controls.
Usage
rewind_undo(session = shiny::getDefaultReactiveDomain())
rewind_redo(session = shiny::getDefaultReactiveDomain())
rewind_jump(index, session = shiny::getDefaultReactiveDomain())
rewind_clear(session = shiny::getDefaultReactiveDomain())Examples
if (interactive()) {
library(shiny)
server <- function(input, output, session) {
rewind_enable()
observeEvent(input$my_back_button, rewind_undo())
}
}