not able to fetch and mutate the data
Hi all,
I am trying to use this code
which is given in the official docs but I can't see any entry or any console-logged data in my terminal.
https://github.com/Boby900/yogurt
any help would be highly appreciated
GitHub
GitHub - Boby900/yogurt
Contribute to Boby900/yogurt development by creating an account on GitHub.


6 Replies
equal-jade•2y ago
Hmm, then tis means that your server action isn't being called. What does your
<Submit/> component look like?
oh wait
what happens when the <Submit/> component is defined outside of the <ProfileForm/> componentrival-black•2y ago
Hey @Boby,
I'd recommend going through https://neon.tech/guides/next-server-actions on how to use Neon with Next.js server actions.
plain-purpleOP•2y ago
<Submit /> button is working fine, I guess, I was able to submit the form using this component.
I have found this below code and I am able to post the data, and form is working fine.
plain-purpleOP•2y ago


plain-purpleOP•2y ago
thanks for helping me @Mahmoud
@Rishi Raj Jain
rival-black•2y ago
Glad it's working!