RxFiddle
RxFiddle copied to clipboard
Visualisation of timestamp() incorrect
Using timestamp()
overlays multiple events on top of each other. Removing the timestamp()
operator makes them be spaced out over the graph again.
http://rxfiddle.net/#lib=rxjs5&type=editor&code=UnguT2JzZXJ2YWJsZQogIC5pbnRlcnZhbCgxMDApCiAgLnRpbWVzdGFtcCgpCiAgLnRpbWVvdXQoMjAwKQogIC50YWtlKDUpCiAgLnN1YnNjcmliZSgKICAgIHZhbCA9PiBjb25zb2xlLmxvZyh2YWwpLAoJZXJyID0+IGNvbnNvbGUubG9nKCdlcnI6ICcgKyBlcnIubWVzc2FnZSksCiAgICAoKSA9PiBjb25zb2xlLmxvZygnY29tcGxldGVkJykKICApOw==
Visualisation when not using timestamp()
operator:
Thanks for filing the bug. The visualization currently does not handle time as a first class entity. I wanted to support simple cold Observables (Rx.Observable.of(1, 2, 3)
) without time, so the order of events is captured, and every next
call onto the top of the chain cause a new 'tick', the horizontal axis for now.
For some reason the timestamp
operator causes the error to be scheduled inside the same tick. I will try to add timing into a next release. That would circumvent this issue.