Skip to content

redux-saga-requests v0.8.0

Compare
Choose a tag to compare
@klis87 klis87 released this 06 Mar 18:22
· 594 commits to master since this release
  • improved interceptors:

    • passed request action to all interceptors as last argument
    • BREAKING: you have to return something in onRequest, onResponse and onError interceptors, for example request config with added header in onRequest, see interceptors in new docs
  • BREAKING: in order to mark dispatchRequestAction as true in sendRequest, you need to:

    yield call(
      sendRequest,
      action,
      { dispatchRequestAction: true },
    );

    instead of

    yield call(sendRequest, action, true);
  • new flag silent which you can pass in config to sendRequest (like dispatchRequestAction), it tells sendRequest not to dispatch any action and not to call any interceptor, false as a default, useful inside interceptors