Skip to content

onMount Error is not revalidated when the user changes the input #689

Closed
@MAST1999

Description

@MAST1999

Describe the bug

If you have an onMount that returns an error on the first render, changing the value after that does not remove the error.

Your minimal, reproducible example

https://stackblitz.com/edit/vitejs-vite-yjklcs?file=src%2FApp.tsx

Steps to reproduce

Open the reproduction and see that the onMount returns error, but after changing the value the error still remains.

Expected behavior

The onMount error should be revalidated (removed) after user changes the value.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

OS: Linux
Browser: Chrome
Version: 124.0.63

TanStack Form adapter

None

TanStack Form version

^0.19.4

TypeScript version

^5.4.5

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions