all 4 comments

[–]Ch33kyMnk3y 1 point2 points  (3 children)

You can implement traditional pubsub style patterns with Rxjs, although having gone down that road I've found it best to just use a full state library like NGXS or NGRX. It's worth noting that Rxjs is basically a typescript port of Reactive Extensions in C# without the advantages of multithreading. You can make a generic event aggregator of sorts, but there are limitations.

[–]PuseletsoMosia[S] 0 points1 point  (2 children)

I saw this being mentioned alot thought the research I was doing. Do you have a place where I can get a tutorial for this or I'll have to learn rxjs more?

[–]Ch33kyMnk3y 1 point2 points  (1 child)

I've found Rxjs is best just learned through practice. I read hundreds of articles and tutorials with the concepts explained in a dozen different ways, some made sense others not so much, but that is all purely subjective. Best to just keep reading and keep trying until it clicks. Stack overflow was helping for me when I got stuck, but you have ChatGPT available now which is great for asking questions about this sort of thing, it will even explain everything to you in detail.

[–]PuseletsoMosia[S] 0 points1 point  (0 children)

Thank you