redux-saga-requests v0.8.0
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 inonRequest
,onResponse
andonError
interceptors, for example request config with added header inonRequest
, seeinterceptors
in new docs
-
BREAKING
: in order to markdispatchRequestAction
astrue
insendRequest
, 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 tosendRequest
(likedispatchRequestAction
), it tellssendRequest
not to dispatch any action and not to call any interceptor,false
as a default, useful inside interceptors