-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update marble diagram images for operators that accept "notifiers" #6627
Comments
We introduced swirly a while back to generate svg marble diagrams. I did not have the time to update/add all the marble diagrams, but I did a poc with concatAll that is already deployed to rxjs.dev, you basically describe the marble diagrams in a ascii format, so there should be a concatAll.txt somewhere in the repo, additionally there are dedicated npm scripts to use those text files and generate the marble diagram. Lastly, you would just have to update the path in the tsdoc comment of the operator, likely just replacing the fileformat |
I would very much appreciate your support with that, if you wanna start doing this for audit and throttle that would be amazing!!! |
Hey @niklas-wortmann, thanks for letting me know. I'll check what's going on with Swirly and possibly create a (couple of) PR(s) fixing issues described in the ticket description. I may also go and re-implement all existing marble diagrams using Swirly 😁 |
@benlesh, since you were mainly involved in normalizing behavior between various operators that receive notifying Observables so that they all "act" on next notification, could you please review the list I created and possibly give suggestions? There are a lot more operators that receive notifying Observables than what's on the list, but it looks like they have relatively good marble diagrams, so I didn't add them here. |
@niklas-wortmann, all done, could you please review PRs when you have some time? I also included Also, still waiting for Ben (or anyone else) to confirm |
@niklas-wortmann @benlesh following up on this one! |
@benlesh, I was once again reviewing this issue and I'm still not sure whether In contrary, |
Since RxJS v7 has been released, many operators that accept "notifiers" have been adjusted to listen to only "next" notifications. This has become mandatory as per RxJS Core Semantics guide:
However, many marble diagram images have to be updated as they don't reliably picture this behavior. For example,

audit
operator displays this image:A user "reading" this image might be deceived to think that an Observable that has been passed to
audit
operator needs to complete before destination will receive next "next" notification. This is not true now.Marble diagram images of these operators need to be updated:
The text was updated successfully, but these errors were encountered: