Do I need one subject per event type, or one per domain? #7022
Unanswered
robertmain
asked this question in
Q&A
Replies: 1 comment
-
They are equivalent. It's easy to build either of them from the other if you need to (merge + map for one side, filter + map for the other). I personally use the first approach. Usually it has less boilerplate, and it lets me easily use those streams separately. |
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.
-
I'm not sure how to use
Subject
correctly. I'm building an application that uses (for example) a grocery list. I'm not sure if I should have different subjects for each type of action that may be performed on the grocery list like this:or if I should instead have a
Subject
for the grocery list, and then somehow add atype
property to my subject data to indicate the operation being performed like so:Beta Was this translation helpful? Give feedback.
All reactions