How to handle form submit and redirect flow?
Opened this issue · 1 comments
tcagkansokmen commented
Normally we use "success" and return it true, and turn it to false after redirect.
But in that case we can use only "loading" and "error" variables.
How can we handle form submit-redirect flow?
JeremyDolle commented
Hi @tcagkansokmen, it's because we don't need it. In the handle submit function, you have to dispatch your action and use unwrapResult
in a then callback for the success part, and use a catch callback for the error part. See: here.