Video yükleniyor...
Video Yüklenemedi
useDeferredValue in React
128,051 görüntüleme • 1 yıl önce •via X (Twitter)
9 Yorum

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 Čolse1 yıl önce
Why don't you just set a css variable?

Sahil Zambani1 yıl önce
If useState can make it happen as well, why to use useDeferredValue

Alex Sidorenko1 yıl önce
Performance

no more big d4ta1 yıl önce
Nice!

Kazuma Horiike1 yıl önce
Didn’t know that! Thanks!

Harish1 yıl önce
Nice, thanks for sharing

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 Sidorenko1 yıl önce
Yep, since React 18
