Replies: 1 comment
-
Immutable update? Not quite sure what you're asking, but signals do not support mutating objects/arrays, no. To update a signal, you need to reassign, i.e., const myObjSignal = signal({ foo: 1 });
myObjSignal.value = { ...myObjSignal.value, bar: 2 }; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does this library provide immutable update over objects and arrays ?
Beta Was this translation helpful? Give feedback.
All reactions