Nextjs 14 Simple Filtering Tutorial Server Actions, React Query Drizzle

preview_player
Показать описание

## Check out my web dev courses below🔥

👨‍💻Connect with me

---

🎶 Dope tracks🔥

#react #nextjs
Рекомендации по теме
Комментарии
Автор

Hope you enjoy this one 🔥
If you want to also limit the number of requests you get back, you can use something like Drizzle's gte (greater then) function with the eq function. So your paramater can have something like 50:number, so you can fiter out ids that are below 50 for example 👍👍

developedbyed
Автор

Hey Ed! This is a great video, but I just wanted to mention that setting up Drizzle and the schema.ts file might seem a bit confusing at first for people who are totally new to this. Maybe you could add a bit more explanation in the beginning to break it down for beginners? It might be very boring to you to explain every detail but most people who come to see this video are like absolute beginners. The video is still awesome! And you're awesome too!

Code-szdb
Автор

What's the reason for making the getter function(s), i.e. getVariants, a server action versus just a regular async function?

EDIT: I figured this out the hard way after encountering the error [Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".]

This still makes little sense to me, can you shed any light on why these getters need now be server actions?

salieflewis
Автор

Thank you! More React Query content please!

codermeloman
Автор

Instead of setting onclick on Badges you can use Link Component,
By which you can make this component a server component as well

GucciKevin-qjnb
Автор

I can't seem to find this anywhere - how can I fetch data using ReactQuery and consume it in a server component ? It seems like everyone is prefetching on a server component -> creating a child component to actually consume the data.

kristoferhokr
Автор

Hey bro any plans on updating fullstack react course on your website? it's been a year !

hellokevin_
Автор

Isnt get varianta a server function? You are calling your db inside it and then importing it client side? Or am i misunderstanding something?

dawidwraga
Автор

hi, is this in the next course? thx !

mondistributeur
Автор

Oh god. I don't wanna say it. FIRST¿ 😂

somerandomdude-hoyeaaaaa
Автор

Why you are loading products on client side

chandrareddy