Building Product component for ecommerce app (with Vercel Postgres)

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • 🔴 WATCH NEXT: • Building an Ecommerce ...
    ⚡️Sign up for newsletter: bit.ly/tk-signup
    🔴 Subscribe: czcams.com/users/tu...
    X: / tumee
    How I stay focused: brain.fm/tuomo
    #nextjs #nextjstutorial #postgres

Komentáře • 12

  • @avigdev
    @avigdev Před 3 měsíci +1

    Well done, I like your content. There are videos that to present the subject they can estimate the video in two hours, but you present what is really needed. Well done. I would be happy if you would make a video about kv as well and try to compare advantage and disadvantage.

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  Před 3 měsíci +1

      Thanks a lot! I got one video about vercel kv here: czcams.com/video/nV3IN4Bkl9s/video.html But that's a good idea to make comparison too!

  • @choulouchris8788
    @choulouchris8788 Před 2 měsíci

    Thanks Tuomo, learning the route handler and you helped a lot.

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  Před měsícem

      Great to hear!

    • @choulouchris8788
      @choulouchris8788 Před měsícem

      @@TuomoKankaanpaa Hi Tuomo, I found out there is a caching problem when using such const result =
      await sql`Select * From posts;`;
      I used cookies() to make every query up-to-date, is there any other ways we can deal with it? Otherwise the users won't see the newest data, thanks!

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  Před měsícem

      @@choulouchris8788 Here's a detailed explanation of how different caching mechanisms work, hope that helps: x.com/tumee/status/1807337915275420090

  • @sawfanish
    @sawfanish Před 3 měsíci +1

    Thank you!

  • @izsalqurlinas
    @izsalqurlinas Před 3 měsíci

    Thanks for the info, when I use so much "use client" when fetch data.

  • @ParthSarthiBissa-yx9tr
    @ParthSarthiBissa-yx9tr Před 3 měsíci

    Great share!💫
    I have one question here, I wanted to learn about how we can show loading indicators while data is being fetched using server components? Any ideas would be a great help here.

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  Před 3 měsíci

      Very good question! I have actually video planned about this exact topic but in short you can use react suspense for example to show loading indicator