N
N
NarkoMan012021-08-05 12:29:06
JavaScript
NarkoMan01, 2021-08-05 12:29:06

What should be used for the store, ngrx or services?

DD!
Why did they create ngrx, if there are services that also allow you to store the state. What are the benefits of using ngrx?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2021-08-06
@Xuxicheta

By analogy with redux from a parallel world.
Advantages - in the presence of documentation and the availability of devtools for tracking.
Disadvantages - an extra lib, a boilerplate and a stream of events that can affect performance.
There are no special advantages, especially if you can write in streams without unnecessary subjects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question