Skip to content

Improved callbacks [breaking]

Compare
Choose a tag to compare
@Richardvanwill Richardvanwill released this 24 Jun 11:29
· 269 commits to master since this release

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 }) => {}