Replies: 4 comments 14 replies
-
In v19 the state object is frozen for your own safety. You don't want to have mutable changes to a Signal. In your case, you have At the moment, the solution is not to put |
Beta Was this translation helpful? Give feedback.
-
As an additional comment to the current situation: I have my component with 3 input fields, which are used for search. All 3 of them are combined into an object and is used in some other places of my already existing code. Right now I cannot forward the search-objects reference from the SignalStore to my component. Well I can forward the reference and it compiles. But any kind of update in my component would change the referred object in the Signal-Store and therefore throw an Error. I did expect from the Store to keep the State of the components field and therefore I've coded it like this way. Honestly I'm really confused right now what's expected about the functionality of the Store. Seems like there is a gap between what is provided in V18 and what's the new design. |
Beta Was this translation helpful? Give feedback.
-
Just as general question to these changes: If I understand it correct than I have
The first are immutable and cannot be changed; not even the content. If I want to adapt the content I need to run My q: I can define So, basically the BreakingChange in V19 is to distinguish between Signals which cannot be changed from outside (=similar to the |
Beta Was this translation helpful? Give feedback.
-
Most of the requested points are answered. Thx very much. |
Beta Was this translation helpful? Give feedback.
-
The upgrade to V19 causes some problems which I'm finally not clear how to solve it.
According to the documentation I should use an immutable approach. While this works for primitives I have no clue how this works for complex default Angular Material Controls. I have in my initial state
which is used like
The
FormRecord
isn't changed by itself. But when I try to add a control I get an exception likeHow is it supposed to work with V19 since neither the spread nor the
structuredClone
helps.It worked already with V18?
Beta Was this translation helpful? Give feedback.
All reactions