Is it possible to create a derived RwSignal? #2354
Answered
by
gbj
ChocolateLoverRaj
asked this question in
Q&A
-
Is there something like |
Beta Was this translation helpful? Give feedback.
Answered by
gbj
Feb 22, 2024
Replies: 1 comment
-
You can get a mapped signal setter with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ChocolateLoverRaj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can get a mapped signal setter with
SignalSetter
, which is the "write only" equivalent to the "read only"Signal
wrapper. There's no mapped RwSignal (i.e., no way to get from anRwSignal<SomeStruct>
toRwSignal<SomeStructField>
, although you can usecreate_slice
to get aSignal
and aSignalSetter
for a single field of a struct)