Answer the question
In order to leave comments, you need to log in
How to separate reducers and state in redux?
Good evening, plunging into redax got confused.
I can’t understand when it’s worth separating the reducer and state if I have 1 entity, but different data, for example:
The Article entity, there may be 1 article, or there may be a whole list, respectively, the data in the state is different:
articles: [], // для списка статей
article: {} // для одной статьи
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question