Replies: 1 comment 1 reply
-
Not sure what you mean, exactly. If you can provide a minimal compiling example I'm happy to try to figure it out. The |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am currently working with some nested signals - something like
Signal<Vec<Signal<Datum>>>
- whereSignal
is theRwSignal
.Nested signals are used here because each
Datum
may be updated in the UI and we need to keep track of their potential changes.Things are working fine as long as we work with the existing collection. Removing some also works.
However, we would also want the ability to add a new
Datum
to the collection.Issue we are facing, is that whenever we add a
Signal<Datum>
to the collection via a component, it ends up being dropped.We are currently trying something like that:
data.with(|v| v.push(create_signal(datum)))
.I may have missed an obvious example in the book, but is there a recommended way to handle adding data to a collection of nested signals?
Thanks a lot for any insight!
Beta Was this translation helpful? Give feedback.
All reactions