App Router: Mutating Data | Next.js
App Router: Mutating Data | Next.js
nextjs.org
Related
Insights
Highlights
Lastly, you want to pass the id to the Server Action so you can update the right record in your database. You cannot pass the id as an argument like so:
App Router: Mutating Data | Next.js