snap_on_restore() registers a function that snap_restore() calls after
the tracked values have been written back and before the input values are
sent to the browser. snap_on_restored() registers a function that runs
once the browser reports that the restore has settled. Both receive a
state list with inputs (the named list of input values being restored),
values (the values section of the file), snapshot (the whole
snapshot), and txn (the transaction id); the restored hook also
receives the restore report.
Usage
snap_on_restore(fn, session = shiny::getDefaultReactiveDomain())
snap_on_restored(fn, session = shiny::getDefaultReactiveDomain())