Mutate Value Of Subscribe Object Without Convert It To Observable #6987
Unanswered
mahdi-farnia
asked this question in
Q&A
Replies: 1 comment
-
Would this work? const dummy = new Subject<number>();
const result = dummy.pipe(map((num) => num + 1));
result.subscribe((number) => {
// expects 4 but get 3
});
dummy.next(3) |
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
-
hi, i'm new to RxJS and reactive programming. I asked my question in stackoverflow but i didn't get any response yet!
i want to use these two solutions together with RxJS but I don't know how to do it.
short explanation is:
I can implement a simple emitter class that simulate this behavior but I want a RxJS way.
BTW this is stackoverflow question link
Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions