Rendering a zod "refine" error within shadcn toast #1859
Unanswered
LiteBluSky
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this form subscriber that works perfectly fine just rendering the error text:
If I try the following though, it renders 2 toasts:
Finally, this is the zod schema with the refine:
PS. This also renders the number 2, and the more I "hot reload" the number increases in increments of 2: ej. next number would be 4.
Does this have to do with the whole react "StrictMode" or am I missing something.
This is my first time using TanstackForm so I could also be missunderstanding something.
Beta Was this translation helpful? Give feedback.
All reactions