I have a custom bookmark URL for my shiny app. I use setBookmarkExclude()
to exclude all inputs (i.e. widgets). Then I use onBookmark()
to build a bookmark URL and onRestore()
to restore the state.
During development, if new widgets are added, their IDs also have to be added to the setBookmarkExclude()
function. If not, then the bookmark URL will change.
Is there a proper way to exclude all inputs?
Initially I tried setBookmarkExclude(names(input))
but this doesn't work since this function is called from inside the application's server function when input
is not yet initialized.
Obviously, an opposite function setBookmarkInclude(NULL)
would be ideal?