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

Form-level onSubmit validator gets called once for every field #1061

Open
stellarhoof opened this issue Dec 10, 2024 · 0 comments
Open

Form-level onSubmit validator gets called once for every field #1061

stellarhoof opened this issue Dec 10, 2024 · 0 comments

Comments

@stellarhoof
Copy link

stellarhoof commented Dec 10, 2024

Describe the bug

Form-level onSubmit validator gets called once for every field on submitting the form

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/headless-worker-l9lyf9

Steps to reproduce

Click on "Submit" button and notice the count increasing for every time the onSubmit validator gets called.

Expected behavior

The onSubmit validator gets called once.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

N/A

TanStack Form adapter

None

TanStack Form version

v0.39.0

TypeScript version

No response

Additional context

No response

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

1 participant