Open kandarppatel opened 6 years ago
Are you able to put together a small reproduction case in codesandbox.io ? It would help me understand the problem better. Thanks!
Thanks for your reply. It will take lot of time setup sample code for codesandbox. Can you please try to understand above details and help us find the work around.
Basically its working fine with the action method defined by redux-taxi but as we need to heavily rely on callback functionality so have to use latest method provide by axios which returns dispatch.
Redux Taxi is collecting payload from redux action if it has returned exact type and payload but to do if it will return dispatch function instead of action type and payload. I hope you will understand it better now. Thanks.
@kandarppatel did you get any solution for this? I am facing the same issue now.
Still no proper solution with redux-taxi.
Example Action :
Above action returns function in ReduxTaxiMiddleware action. I have tried using provided middleware and other middle-wares like redux-thunk and redux-promise.
It will work fine with if we use below format but we need to do additional work upon receiving the response so i hope some workarounds available to accomplish this as its very common practice to use with react/redux/axios.
I have also tried to update ReduxTaxiMiddleware.js, its collecting promise but not getting results.