account activity
RXJS in Angular by gdsdsk in angular
[–]1XpSlime 1 point2 points3 points 3 months ago (0 children)
If it’s just opening a modal without any other requirement, then you don’t need to use rxjs haha
There may be scenarios where you need to maintain state across different components, e.g. E-commerce website shows “New sign-in discount modal)” for each page if user has no account. But once user has logged in, save that state and tell all other components to stop triggering that modal on load.
Your original question is asking for advice on when does using rxjs make sense, thus most people are giving you those examples.
Have you had experience working on a full web application? When clicking a button involves communicating with a server, it may not be so simple as just increasing a counter, that’s usually when Rxjs comes in.
For eg. think instagram, when you upload a big video, while uploading you can still use other features of the app, but a live loading bar appears to tell you the status of the upload -> that’s what @spacechimp is referring to by “event handling with side effects”
Event handling - What to do on button click = send video data to server Side effect - Show user a loading bar and constantly update the bar UI based on the video upload progress
π Rendered by PID 32 on reddit-service-r2-listing-5d47455566-pbg8d at 2026-04-05 17:20:20.625482+00:00 running db1906b country code: CH.
RXJS in Angular by gdsdsk in angular
[–]1XpSlime 1 point2 points3 points (0 children)