Condition for Reactions #34
Unanswered
slimshader
asked this question in
Ideas
Replies: 1 comment
-
I don’t really like RX operators, I think that a regular Can you give an example where condition is needed? |
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.
-
Hey,
nothing serious as it is easy to add oneself but what do you think about adding additional overload to the Reaction, that would take a predicate upon a data and only then trigger a reaction? (equivalent f When() selector for Rx).
Often times I find myself opening reaction with "if" (especially for null checks), which makes it less declarative.
Beta Was this translation helpful? Give feedback.
All reactions