skipWhileRequested: reuse pending atm request #210
strigefleur
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Cashew handles simultaneous requests |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Case: you request
/endpoint-foo
then in a moment or so you manage to repeat same/endpoint-foo
request.What happens then? First request is still
pending
and is not cached by repo so you can'tskipWhile
it, thus second request is sent to backend freely; you end up with multiple responses.What's the idea: do cache request observable for
requestKey
- and return it instead of new observable if request ispending
.Neither
Cashew
norElf
cover this.Beta Was this translation helpful? Give feedback.
All reactions