Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server actions are run but only return undefined on the client #428

Open
RahulBirCodes opened this issue Aug 17, 2024 · 2 comments
Open

Comments

@RahulBirCodes
Copy link

RahulBirCodes commented Aug 17, 2024

I have a server action that I call in my useEffect, and I can verify that on my server the action gets called but the response on the client is always undefined. I've tried a bare minimum example where I only return a promise that resolves to a string but even that returns undefined.

@RahulBirCodes
Copy link
Author

Opened an issue on nextjs issues for this vercel/next.js#69022. The undefined response is definitely a critical bug and I hope someone can touch upon this

@justiny
Copy link

justiny commented Aug 28, 2024

I have a server action that I call in my useEffect, and I can verify that on my server the action gets called but the response on the client is always undefined. I've tried a bare minimum example where I only return a promise that resolves to a string but even that returns undefined.

I'm not having that issue when dealing with server actions. Can you show an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants