Open xgrommx opened 9 years ago
@paldepind Can you help me?
What is the value of person
inside flatMap
. And what is the value in the stream created with scanMerge
? scanMerge
should contain the initial value.
I think it might be because the stream created with flatMap
does not emit existing values in the stream it flattens. Only values emitted afterwards are emitted.
person
is Immutable.js which was created from a plain javascript object.
And if you check the value of the stream returned by scanMerge
does it contain the person
?
@paldepind Yes, I'll create a new branch on my repo and upload my experiment with flyd
This is a new branch with flyd https://github.com/xgrommx/react-rx-flux/tree/flyd
I'm not sure what I'm supposed to see.
Can you confirm if this is correct?
I think it might be because the stream created with flatMap does not emit existing values in the stream it flattens. Only values emitted afterwards are emitted.
I'd prefer if you could reduce this problem to it's essence and a smaller code example.
@paldepind But almost the same approach working with Rx, Kefir or Bacon.
Hello, How can I use ajax response with
scanMerge
? For example:But this code doesn't work. Person has value in
flatMap
butscanMerge
doesn't emit value. My RxJS version here https://github.com/xgrommx/react-rx-flux/blob/master/src/store.js#L24