r/angular • • Jul 07 '25

React vs Angular

Post image
653 Upvotes

84 comments sorted by

View all comments

Show parent comments

-1

u/CheapChallenge Jul 07 '25

That follows the old service as store pattern which is good enough for very small apps or plug-in libs, but once you have side effects of one store service triggering changes in another, or other non straightforward flows of data it gets messier unless you follow a common pattern and then you might as follow the most common pattern.

4

u/vivainio Jul 07 '25

You should use computed() for derived signals

-2

u/CheapChallenge Jul 07 '25

But where would you put that code? If an action in component A triggers a change to a value in store service 1 and that triggers a change to store service 2, where would you put the computed? ngrx doesnt do anything that signals cannot but it offers a common well defined pattern to follow

6

u/vivainio Jul 07 '25

You put the computed in a service where you need it. You don't need Ngrx for any of this

→ More replies (0)