-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should reactiveValues
be grouped?
#54
Comments
Are you talking about |
In the current setup, each node is a reactive element. I would like to display the The issue is Other functions such as I am thinking of displaying them in a group. Example: This is also my current vision for "super nodes" (or a group of reactive elements that can be collapsed or expanded). "Super nodes" would be useful for things like
It may end up that @earnaud For now, you can use... reactiveValuesWithLabel <- function(..., .label = paste0('reactiveValues', shiny:::p_randomInt(1000, 10000)) {
args <- list(...)
if ((length(args) > 0) && (is.null(names(args)) || any(names(args) == "")))
stop("All arguments passed to reactiveValues() must be named.")
# ### Update start
values <- shiny:::.createReactiveValues(shiny:::ReactiveValues$new(label = .label))
# ### Update end
# Use .subset2() instead of [[, to avoid method dispatch
.subset2(values, 'impl')$mset(args)
values
} disclaimer: this uses internal methods which are subject to change |
Thanks for your enlightments, they are more than helpful to my work :D |
I completely agree that a label should be able to be passed in. But given the current implementation of shiny reactiveValues where all A |
Currently each key is a separate node.
names(obj)
is a separate node.Should there be a master
reactiveValues
node (always in a ready state) that has a child nodes of keys and child nodes foras.list
ornames
?The text was updated successfully, but these errors were encountered: