T
TanStack2y ago
useful-bronze

onMount error not being revalidated.

I have set an onMount validation but I don't know how to remove it's error after user changes its value. For example the users username on mount has a problem and we add and error but if user updates it the error that onMount added persists. How should I handle that?
2 Replies
ambitious-aqua
ambitious-aqua2y ago
Oh, that's a bug for sure. Let's open a GH issue and I'll see if I can fix It's just an edgecase I forgot to handle
useful-bronze
useful-bronzeOP17mo ago
GitHub
onMount Error is not revalidated when the user changes the input · ...
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...

Did you find this page helpful?