S
S
sdgroup142019-11-01 19:05:44
Angular
sdgroup14, 2019-11-01 19:05:44

Where to process the intermediate result in NgRx before placing it in the store?

Let's say there is an array of objects, or just an object that I get from api. And I need to change it slightly before putting it in the app store. Where can I do it? When in the service I receive data through the pipe to process and then dispatch? Or is there some other option? How to make smarter? I also wanted to ask what is @Effects? I so understood This action between actions... you cause one... waits for execution... and it is followed by another? Correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maks Kovyvchak, 2019-12-10
@sdgroup14

If you need to change the data received from the back for further use on the front, then I would recommend doing this in the observweb pipe in the service.
According to Effects, that's right, they are just for managing actions,
here is a good article on Angular / NGRX

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question