Building Product component for ecommerce app (with Vercel Postgres)
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
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.
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!
Thanks Tuomo, learning the route handler and you helped a lot.
Great to hear!
@@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!
@@choulouchris8788 Here's a detailed explanation of how different caching mechanisms work, hope that helps: x.com/tumee/status/1807337915275420090
Thank you!
Cheers!
Thanks for the info, when I use so much "use client" when fetch data.
Cheers!
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.
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