Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

🚀 Angular v17.1 is out today and I can finally refactor these getters in my code! Keep in mind that signal inputs are still in developer preview, so we are not yet following semver for updating their API. 📚

41,656 görüntüleme • 2 yıl önce •via X (Twitter)

8 Yorum

Tomasz Ducin profil fotoğrafı
Tomasz Ducin2 yıl önce

are output()s in 17.1 as well or not yet?

Migrant profil fotoğrafı
Migrant2 yıl önce

The "before" code is artificially verbose, isn't it?

Minko Gechev profil fotoğrafı
Minko Gechev2 yıl önce

Yeah in this oversimplified example it looks that way. A few differences: - Composability - effect and computed allow signal composition - Execution - gets invoked only when this signal changes - Readability - always subjective, I find simpler primitives easier to reason about

Eugeno profil fotoğrafı
Eugeno2 yıl önce

We could have removed these getters before 😏

Jordan Hall profil fotoğrafı
Jordan Hall2 yıl önce

I like signal inputs but anyone else feel like using effect is ugly here and less readable?

Charlie Greenman profil fotoğrafı
Charlie Greenman2 yıl önce

yay

Dustin Goodman profil fotoğrafı
Dustin Goodman2 yıl önce

Very nice!

Pavan K Jadda profil fotoğrafı
Pavan K Jadda2 yıl önce

Enough for me to use in PROD

Benzer Videolar