-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Next Server Actions example does not work #967
Comments
ok, I got it to work with the sample: |
Am still getting the error and #967 (comment) this still have the issue , how did you get to work , what is the problem ? |
see Next Server example does not work TanStack#967
@anisharaz see the PR #970 |
Also for posterity: I have a next setup where also server side logging is shown in the browser console, however, for unknown reasons the logs from the server action never showed up in my browser console. They did show up in the server console though. |
@rburgst Thankyou that fixed it , but a new problem arised or it exist am not sure, while submitting while the fields are empty the request goes to server and server validation invalidates the and responce with the message and client side validation run too. Does it makes sence to make to send request to server while the client validation is failing |
@anisharaz this looks like a bug in tanstack form to me |
actually, this is due to the fact that if you did not touch the form state then "canSubmit" is true, only once you make any modification then the validation state is updated, see also https://tanstack.com/form/latest/docs/framework/react/guides/validation#preventing-invalid-forms-from-being-submitted |
see Next Server example does not work TanStack#967
see Next Server example does not work #967
Describe the bug
The next server action example does not work currently
https://tanstack.com/form/latest/docs/framework/react/examples/next-server-actions
When submitting the form, the
useTransform
code blows up.Your minimal, reproducible example
https://stackblitz.com/github/tanstack/form/tree/main/examples/react/next-server-actions?embed=1&theme=dark&preset=node&file=src/index.tsx
Steps to reproduce
tunnel-agent
Expected behavior
The example should work and the server action should be invoked.
How often does this bug happen?
Every time
Screenshots or Videos
Platform
TanStack Form adapter
None
TanStack Form version
0.33.0
TypeScript version
5.6.2
Additional context
No response
The text was updated successfully, but these errors were encountered: