The new `useTransition` hook with 3 example usecases

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 37

  • @baychaoz
    @baychaoz 24 дня назад +1

    You are by far one of the best of the few people who manage to explain clearly and straight to the point. That's overly undervalued nowadays. Looking forward to the next stuff I'll grasp from your next Nextjs vid pal.

    • @hamedbahram
      @hamedbahram  23 дня назад

      Thank you! I'm glad to hear that, and welcome onboard!

  • @dreamsachiever212
    @dreamsachiever212 6 месяцев назад +10

    this channel is so underrated. Thanks for the education. I have learned and still learn from you

  • @BroccoliDev
    @BroccoliDev Месяц назад +1

    What an amazing tutorial! Clearly made me understand this problem!

    • @hamedbahram
      @hamedbahram  Месяц назад +1

      Thank you! Glad it helped!

  • @temitopedavid9508
    @temitopedavid9508 6 месяцев назад +2

    As expected! Another new thing to learn

    • @hamedbahram
      @hamedbahram  6 месяцев назад +1

      There you have it :)

  • @afshinkaramifar4429
    @afshinkaramifar4429 6 месяцев назад +3

    like always, great tutorial, well done 👏

  • @zaqqeus
    @zaqqeus 6 месяцев назад +2

    دم شما گرم 😊

  • @konradhylton
    @konradhylton 6 месяцев назад +2

    Useful

  • @godlyradmehr2004
    @godlyradmehr2004 6 месяцев назад +1

    Really useful ❤❤❤❤❤

  • @praiseoshilim1006
    @praiseoshilim1006 6 месяцев назад +1

    Great Video! Please could you make a tutorial on next-redux-wrapper.

    • @hamedbahram
      @hamedbahram  6 месяцев назад +1

      Please don't use Redux.

  • @rezakhani8627
    @rezakhani8627 6 месяцев назад +1

    Hello, I want to use SSR (Server-Side Rendering) and also use useState. Is it possible to do such a thing?
    In fact, I want to include the comments section where I display 20 comments using SSR and display the rest using the client-side rendering. I want to use them in a combined way, but I don't know how to do it. I know how to fetch more comments, but I don't know how to render that part from the beginning. Can you please provide an explanation? Thank you.

    • @hamedbahram
      @hamedbahram  6 месяцев назад

      Sure, you can do that. Watch the video I have on Infinite scrolling where I fetch some initial data and use server actions to load more.

  • @fakhrulislamfuad8072
    @fakhrulislamfuad8072 6 месяцев назад +1

    nice video bro.. Can you do something with web-component with nextjs? still now, there is no video related to this topic in the youtube and even the google doesn't have any recent posts regarding this.

    • @hamedbahram
      @hamedbahram  6 месяцев назад

      I'll have that in mind. Thanks for the suggestion.

  • @shahryartavakkoli
    @shahryartavakkoli 6 месяцев назад +1

    Thank you

  • @hbela1000
    @hbela1000 6 месяцев назад +1

    cool, thx.

  • @kennyNn
    @kennyNn 6 месяцев назад +1

    Can this be used on a server component without converting to a client component

    • @hamedbahram
      @hamedbahram  6 месяцев назад

      You can use the `startTransition` function on the server, but state updates only happens on the client.

    • @kennyNn
      @kennyNn 6 месяцев назад

      @@hamedbahram that's fine as long as the page remains server rendered

  • @jakeycakester
    @jakeycakester 6 месяцев назад +1

    Can this be used with other state management libraries like zustand?

    • @hamedbahram
      @hamedbahram  6 месяцев назад

      That's a good question! I don't know... I'd have to try.

  • @sahajranipa
    @sahajranipa Месяц назад +1

    Hey can you share your notion nextjs notes with us it would help us in making notes about nextjs

    • @hamedbahram
      @hamedbahram  29 дней назад

      These are the module content from my NextJs course.

  • @kazinafizanam9397
    @kazinafizanam9397 6 месяцев назад

    According to your last localization video, i have implemented the language switch system.
    but the issue I am getting is from the middleware you created. i am not getting my static files from the public folder.
    export const config = {
    // Matcher ignoring `/_next/` and `/api/`
    matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"],
    };
    suppose I remove this matcher string and put simple "/" the static files load properly. can you tell me the solution? what do I need to change? please. thanks

    • @hamedbahram
      @hamedbahram  6 месяцев назад

      Can you leave the comment on the related video?

  • @uixmat
    @uixmat 6 месяцев назад +1

    Love this one Hamed 🫶🏻