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()

3 Replies
other-emeraldOP•7mo ago
No one encountered this issue? why client validation doesn't occur so that it's failure prevent hitting the server?
quickest-silver•7mo ago
can you please create a github issue for this so we can properly track it?
other-emeraldOP•7mo ago
Thank you, I created one at github.