T
TanStack7mo ago
other-emerald

validateClient:true not preventing calling server function when input on client is invalid

I am using a simple middleware which has validateClient set to true with a server function. I expected when I call server function with invalid input, an exception on client side prevent calling the server function. But seems the validation occurs on the server side. I provided the code in the screenshot attached. Am I missing something? Thanks. ps: in snippet below there is a typo: validate() should be validator()
No description
3 Replies
other-emerald
other-emeraldOP7mo ago
No one encountered this issue? why client validation doesn't occur so that it's failure prevent hitting the server?
quickest-silver
quickest-silver7mo ago
can you please create a github issue for this so we can properly track it?
other-emerald
other-emeraldOP7mo ago
Thank you, I created one at github.

Did you find this page helpful?