0
post request in the action creator?
Blog app : mongodb, express, react ,redux; i am working on a blog app and , and i am wondering if i it's ok to use action creators in react-rerux for crud operationa like post , in this case it doesn't return a payload .
4 ответов
+ 8
You can refer to this guide:
https://redux.js.org/advanced/async-actions
There is no problem using action creators for CRUD operations, even if there is no returned payload.
You can (and should) invoke an action depending on the returned status from the server.
+ 1
Thanks for clearing my doubts .😊