I found the same question here , but without the proper answer I'm looking for.
I am developing a simple application with CRUD operations. On the editing page, after installing the component ( componentDidMount()), the application sends an action to receive certain information about the message:
dispatch({ type: FETCH_POST, id: 'post-id' })
I am using redux-saga and want the above call to return Promise so that I can access the API response.
Right now, without callback / Promise, I ended up defining a new state in the store (for example post_edited) and connected / matched it with the details in the page editing component.
What would be the best way to deal with this situation?
source
share