Skip navigation
useDeferredValue in React
0:00 / 0:28

useDeferredValue in React

Alex Sidorenko

@asidorenko_35K followers

Visit on X
1,810 likesDownloadOriginal post

128,170 views

useDeferredValue in React

9 Comments

Comments from the original post on X (Twitter)

  • Alex Sidorenko's profile picture

    @asidorenko_

    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)

    124 likes

  • Boko Čolse's profile picture

    @struhy_xd

    Why don't you just set a css variable?

    4 likes

  • Sahil Zambani's profile picture

    @zambani_sahil

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

    3 likes

  • Alex Sidorenko's profile picture

    @asidorenko_

    Performance

    9 likes

  • no more big d4ta's profile picture

    @mardo12341

    Nice!

    2 likes

  • Kazuma Horiike's profile picture

    @holykzm

    Didn’t know that! Thanks!

    2 likes

  • Harish's profile picture

    @tweet_harry00

    Nice, thanks for sharing

    2 likes

  • John Doe's profile picture

    @JohnDoe144277

    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.

    2 likes

  • Alex Sidorenko's profile picture

    @asidorenko_

    Yep, since React 18