Skip navigation
Streaming data from server to client with "use" in Next.js
0:00 / 0:53

Streaming data from server to client with "use" in Next.js

Alex Sidorenko

@asidorenko_35K followers

Visit on X
615 likesDownloadOriginal post

37,119 views

Streaming data from server to client with "use" in Next.js

10 Comments

Comments from the original post on X (Twitter)

  • Stefano Vidmar's profile picture

    @stefano_vidmarr

    I saw this pattern used in next conf. This is very useful when you don't want to create a wrapper component to do the data fetching and then pass down the data as props. Instead just like you showed pass it down as a promise and consume the promise on the client.

    6 likes

  • Ververica's profile picture

    @VervericaData

    Ververica's Unified Streaming Data Platform available at AWS.

    92 likes

  • Alexandre Trotel's profile picture

    @trotelalexandre

    niceeee

    1 like

  • Dedeh's profile picture

    @dedehwr

    which confetti plugin do you use

    1 like

  • sly's profile picture

    @alkadaemon

    my brother wanted to kill himself because the documentation sucks for next. sincerely thank you for this 1 minute video.

  • Snazzles9's profile picture

    @martin_kzr

    What version of Next.js is this available in?

  • bro nifty birds are not real 🐦's profile picture

    @bronifty

    you can remove then res from react serialization component else you have resolved dog not dog promise

  • AbbyZZZ's profile picture

    @ZxtZz54633

    streaming data in next.js can be tricky. make sure to use server-side rendering for initial loads and then switch to client-side fetching for real-time updates. this way, you keep the user experience smooth while handling data efficiently.

  • .manishrc's profile picture

    @manishrc

    👌 This 53s video would have saved me 1 hour. Wish I saw this last week. How do I see a searchable list of your videos?

  • Alex Sidorenko's profile picture

    @asidorenko_

    You can use from:asidorenko_ in X search