re: React Beginner Question Thread ⚛ VIEW POST

TOP OF THREAD FULL DISCUSSION
re: 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 an...
 

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.

code of conduct - report abuse