Could we have doOnAnything operator? #6476
Thaina
started this conversation in
Ideas / Feature request
Replies: 1 comment
-
You can very easily implement this yourself and this probably isn't a very common use-case so it's very unlikely this could become part of RxJS core. |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose there was an ajax call to server that, when it was trigger, it should disable many UI in the page. Normally we could use
Do
withonNext
andonError
to enable the page again whenever the result was coming or throwing error. But if there was just the same long line of codes it became 2 duplicate blocksSo I would like to propose this operator to catch all to do something. It would have no input like a
Finally
but trigger just before next stepIs it possible?
Beta Was this translation helpful? Give feedback.
All reactions