server-action Questions
2
First of all here is my code in react
import { useFormState, useFormStatus } from 'react-dom'
import { submitAction } from './action.ts'
export default function Calculator() {
const [result, subm...
Mantelletta asked 14/1, 2024 at 18:0
3
I am not able to read the select value in shadcn form Select. I am using serveraction.
So, I am creating a form to send emails, i am able to read the values of other fields but not the value for Se...
Silberman asked 4/12, 2023 at 7:20
4
Solved
I'm new to nextjs and the new updates are a bit overwhelming for me. It may sound dumb, but my question is: when should I use Server Actions and when should I use Route Handlers. Could I use them b...
Grandee asked 2/1, 2024 at 20:21
1
i have been working on this for a while and i can't even make it work. the issue is that i wanna pass a value to my server action for prisma from my state management context. but everytime i try to...
Arbuckle asked 1/1, 2024 at 17:21
3
I am working on a Next.js application and I have defined an action under app/actions/create-foo-action.js. I am trying to send a response back to the client from this server action.
import { connec...
Gravy asked 6/8, 2023 at 16:11
1
© 2022 - 2025 — McMap. All rights reserved.