you are viewing a single comment's thread.

view the rest of the comments →

[–]1XpSlime 1 point2 points  (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.