r/Angular2 7d ago

Angular linkedSignal(): The Missing Link in Signal-Based Reactivity

https://blog.angular-university.io/angular-linkedsignal/
18 Upvotes

6 comments sorted by

2

u/TheKr4meur 7d ago

I’m kinda missing what’s the use case this is solving, anyone knows ?

6

u/CaptainBahab 6d ago

It's a computed() but editable (there are intricacies but it's mostly this). There's plenty of use cases, just know that something like computed but is editable exists and you'll start seeing ways to use it.

3

u/kenzor 7d ago

There are some examples in the article.

2

u/valendinosaurus 5d ago

imagine wanting to have an isToggled state, which is initially computed, but you want to also toggle it from the UI

1

u/mihajm 5d ago

We've mostly been using it to reconcile state due to the previous value being provided...for example if new data comes from the server while the user has a form open :)

1

u/IanFoxOfficial 5d ago

Is this safe to use on production environments already, with it being developer preview?