Negative `pending` when using `sendRequest`
See original GitHub issueWhen using the low-level API with sendRequest
the pending
state becomes negative
e.g:
// saga
function* loadSomething(): Saga {
const {response, error} = yield call(sendRequest, actions.fetchSomething());
}
// reducer
....
something: requestsReducer({
actionType: FETCH_SOMETHING,
getData: (state, action) => action.data,
}),
...
Issue Analytics
- State:
- Created 5 years ago
- Comments:39 (21 by maintainers)
Top Results From Across the Web
BDT2866 - IBM
32C, Pending ACK count negative. Detected by module BDTSCRCX, BDTSCRCV, or BDTSNRRX. None, None. 330, Receive exit error (PUTBUF).
Read more >Handling of TestWaitForDiagResponse Function (CANoe only)
1, a response (positive or negative) has been received (P2 or P2* ... CANoe will consider the reception of "Response Pending" responses from ......
Read more >Cash Back Deposit Account Agreement - Spendwell
Only an Accountholder with a valid spendwell Account in good standing (meaning your Account is not presently subject to an open/pending investigation and...
Read more >Inbound Chaining1 - Host Integration Server | Microsoft Learn
The host sends a negative response to a request in the chain. The local node sends a Status-Acknowledge(Nack-1) message to the application with...
Read more >Frequently Asked Banking Questions & Answers - WesBanco
You can send, request, or receive money with Zelle®. To get started, log into WesBanco Bank's mobile app and select “Send Money with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
(by saying “same action”) I mean that fetchBooks() can be called in the same app in two different scenarios:
function *watchBookUpdate() {yield put.resolve(fetchBooks)}}
function componentDidMount {this.props.fetchBooks();}
@mihaisavezi I am glad you solved it, anyway
sendRequest
for sure will be gone from this library, as it won’t be powered by sagas anymore, just pure reduxI recommend you doing the following:
promisify: true
tohandleRequests
and addrequestsMiddleware
to middlewares like in docsstore.dispatch(fetchSth()).then().catch()
const response = yield putResolve(fetchSth())
, or with older version of sagaconst response = yield put.resolve(fetchSth())
autoPromisify: true
tohandleRequests
to promisify all actions, someta.asPromise
is not necessary anymoreProbably in the future version promisifying will be turned on always, so
promisify
,autoPromisify
andmeta.asPromise
will be removed too