Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

❌ Avoid multiple state variables to track status. ✅ Instead use enums.

152,349 görüntüleme • 1 yıl önce •via X (Twitter)

8 Yorum

statuscast profil fotoğrafı
statuscast2 yıl önce

Help your IT team cut through 'Are you down?' clutter with StatusCast’s Audience Specific Status Pages. Tailor your status page to each user's role and needs for effective incident communication.

Roushou (e/acc) profil fotoğrafı
Roushou (e/acc)1 yıl önce

Even better to use a union string

FullStackIzzy profil fotoğrafı
FullStackIzzy1 yıl önce

George, I definitely need to try your implementation. Because this can't be life. I apologize for my code below🤦‍♂️:

Marcelo Terreiro profil fotoğrafı
Marcelo Terreiro1 yıl önce

Holy crap don’t do this. Why enums if you can you a string literal lol

Alexandru Corut profil fotoğrafı
Alexandru Corut1 yıl önce

Nice, but what’s the error.message?

Pavel Romanov profil fotoğrafı
Pavel Romanov1 yıl önce

If it is only possible to have one of the states at a time, then it is a way to go 👌 It's also much easier to work with a single state than with all those boolean logic conditions mixed into the component.

Alessandro profil fotoğrafı
Alessandro1 yıl önce

It's not enum

Dika profil fotoğrafı
Dika1 yıl önce

It only records status, how do you save the value of error message?

Benzer Videolar