Can someone explain to me why callbacks defined on action creator do not fire?
The code in question can be seen here.
Is this plugin good to work with? (It seems abandoned.) How should I handle API calls in medium application?
Thanks in advance.
I figured it out,i have misunderstand the documentation (not first time). If you want to use those callbacks in your action, you must pass it with this syntax:
var action = {
type:'YOUR_REQUEST',
payload:{
request:{
...yourRequestConfig
},
options:{
onSuccess:()=>console.log('success)
}
}
}