J
J
js_web2018-10-08 14:02:37
React
js_web, 2018-10-08 14:02:37

Where to do the conversion?

I execute action , fetch works, I get a list of users.
Everything is OK, but the fact is that the structure is very deep, has a lot of nesting. (about 5 nesting levels and 20 fields)
I need to make a simplified array based on this object. (take about 3-4 fields from different levels of nesting)
Tell me please Where is the best place to do this? in the reducer or in the selector?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-10-08
@js_web

In the reducer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question