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-foothen in a moment or so you manage to repeat same/endpoint-foorequest.What happens then? First request is still
pendingand is not cached by repo so you can'tskipWhileit, 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
CashewnorElfcover this.Beta Was this translation helpful? Give feedback.
All reactions