Server action not firing?
Unanswered
Spectacled Caiman posted this in #help-forum
Spectacled CaimanOP
For some reason my server action doesn't get fired? I am using the exact same logic in a different component and that works. I am not getting any errors from zod, react-hook-form, or nextjs
Client: https://srcb.in/H7bR0p4KKb
server action: https://srcb.in/U0gThrXu4T
Client: https://srcb.in/H7bR0p4KKb
server action: https://srcb.in/U0gThrXu4T
4 Replies
Sun bear
Is your "running" logged when submitting the form?
@Sun bear Is your "running" logged when submitting the form?
Spectacled CaimanOP
yeah that's running anything after the
await createOffer(data) doesn't get executedI've even tried it with next-safe-action and the same issue happened
i cant see why it isnt working, but i am assuming its still broken if you have no return statement (ie
return "yay")