A
A
Andrey Okhotnikov2019-07-15 11:33:58
React
Andrey Okhotnikov, 2019-07-15 11:33:58

Storing data in Redux?

Does it make sense to store all application entities in redux , or can it be done like this - save only user data and category menu there (online store), upload the rest of the data to the local state (product catalog for example)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Suha, 2019-07-15
@tsepen

If you need some value, object or array in several independent components, then store them in the Store, if only for one component, then in the local state. Well, a variant like me xs whether this data is needed in other components, it is better to store it in the store.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question