Improved callbacks [breaking]
Includes consistent config callbacks for beforeSuccess, afterSuccess, beforeFailed and afterFailed.
Breaking changes:
- Callback arguments have been combined into one object, so you can easily cherry pick what you need using destructuring.
Update your code by adding destructuring:
Old:afterSuccess: (request, dispatch) => {}
New:afterSuccess: ({ request, dispatch }) => {}