Quick FYI, supabase changed a few things in regard to their core infrastructure (supervisor). To make the connection with prisma and supabase work, please follow the following guide: supabase.com/partners/integrations/prisma
That's really great you haave summorized many new concepts of next js. I think it would be great if you add somee info about disabling the button while saving/updating thee data. Although really really great conceptual video especially using a server component inside child component and it doesn't cause hydration
Great video, but my problem is when I export the functions from "actions.ts", my "/better" page gives me this error: Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".
Hi Marshal, is there anything like server actions in Remixjs? Which you think is better in Server Components between Remixjs and Nextjs? Waiting for your kind reply...
Hi, In Next.js you have server actions, in remix you have actions. The difference is that you can call server action from the component level, while in remix you call them from the route level. There is no better in nextjs or remix. Use what you like and feels more natural.
i am facing an issue while updating my todo. in my case i am using another file todo/[id]/page.ts for updating my todo here the problem begings. i get the id of todo using params. and send the id to form using input type=hidden method. again i catch the id const todoid=formdata.get('id') as string and pass this id to prisma for updating it shows me error. because i am converting the id as string.
@@janmarshalcoding sir i have resolved the error the error was in my params. when i console log the params i find out that id is inside the params object and i was only using params.id that is why it was showing me null value or undefined then i used params.params.id it show me the id of the todo. thanks for your time.
Quick FYI, supabase changed a few things in regard to their core infrastructure (supervisor). To make the connection with prisma and supabase work, please follow the following guide: supabase.com/partners/integrations/prisma
you are excellent buddy , love from india
This is amazing, thanks man.
Thank you Marshal!
That's really great you haave summorized many new concepts of next js. I think it would be great if you add somee info about disabling the button while saving/updating thee data. Although really really great conceptual video especially using a server component inside child component and it doesn't cause hydration
disable={pending}
amazing explain
Great video, but my problem is when I export the functions from "actions.ts", my "/better" page gives me this error: Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".
Hi Marshal,
is there anything like server actions in Remixjs?
Which you think is better in Server Components between Remixjs and Nextjs?
Waiting for your kind reply...
Hi,
In Next.js you have server actions, in remix you have actions. The difference is that you can call server action from the component level, while in remix you call them from the route level.
There is no better in nextjs or remix. Use what you like and feels more natural.
@@janmarshalcoding OK, thanks.
Thanks for sharing quite useful.
How can I set the formData to an empty string after creating a new todo?
One hack is to use key.
What is your theme please ?
Aura Theme
Is server actions possible with separate backend ?
Yes it is
I'm enjoying this... more content boss
Next week, something special 🤫🤫🤫
@@janmarshalcodinge commerce app with AI chatboy will be the best because will cover all the modern chalanges and would be great for us
😍😍😍😍😍😍😍😍🥰🥰🥰🥰🥰🥰🥰🥰
404 error in your GitHub repo
fixed
You spent 1h on explaining almost nothing
You're welcome 😉
I loved the explanation, thanks!@@janmarshalcoding
what are you talking about? He has explained server actions better than many others did.
i am facing an issue while updating my todo. in my case i am using another file todo/[id]/page.ts for updating my todo here the problem begings. i get the id of todo using params. and send the id to form using input type=hidden method. again i catch the id const todoid=formdata.get('id') as string and pass this id to prisma for updating it shows me error. because i am converting the id as string.
what exactly is the error?
@@janmarshalcoding sir i have resolved the error the error was in my params. when i console log the params i find out that id is inside the params object and i was only using params.id that is why it was showing me null value or undefined then i used params.params.id it show me the id of the todo. thanks for your time.
Cool, if you destructure the params you could also just do params.id, so in that sense ({params}: {params: {id: string}}).