I work with React with Redux and Saga. I need transform and validate the data from form before send it to server. Where I put the transformation and validation?
I don’t know, but hopefully both before you send it, and on the server (in case the request is spoofed). 🙂
As for where exactly, well, wherever you post the form. I don’t quite understand what confuses you, can you elaborate?
Thanks for answere, I'm big fan of your work. As you said, I need validate before send it to server, but also receive validation from the server in response. I dont know if I put this validations rules in Saga, in React component or some where ele. Today I have a custom function with custom generic validation that I use in Saga before and after post to server, and save the validation in redux store to render in components.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.