Form Submiting Doesn't Work, It refetches getStaticProps instead
I have simple form with some inputs, I call
submitHander
function and just testing if it calls onSubmit
this is what I have and instead of logging "called?"
it makes GET request of what API fetches I make in getStaticProps
, and why does it happens like that? isn't it supposed to run submitHandler function? apply-now
is my route in /pages
3 Replies