Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

useDeferredValue in React

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

9 Yorum

Alex Sidorenko profil fotoğrafı
Alex Sidorenko1 yıl önce

The component that receives the prop should be memoized (otherwise, it'll keep re-rendering when the non-deferred state updates and performance will remain the same)

Boko Čolse profil fotoğrafı
Boko Čolse1 yıl önce

Why don't you just set a css variable?

Sahil Zambani profil fotoğrafı
Sahil Zambani1 yıl önce

If useState can make it happen as well, why to use useDeferredValue

Alex Sidorenko profil fotoğrafı
Alex Sidorenko1 yıl önce

Performance

no more big d4ta profil fotoğrafı
no more big d4ta1 yıl önce

Nice!

Kazuma Horiike profil fotoğrafı
Kazuma Horiike1 yıl önce

Didn’t know that! Thanks!

Harish profil fotoğrafı
Harish1 yıl önce

Nice, thanks for sharing

John Doe profil fotoğrafı
John Doe1 yıl önce

Is that an actual react hook in 19? I always built something similar on my own and called in something about denouncing, but that’s sick if it’s officially a part of React.

Alex Sidorenko profil fotoğrafı
Alex Sidorenko1 yıl önce

Yep, since React 18

Benzer Videolar