libs). I have a product order page which displays the current order price and some other informations that I need to keep in state and update in real time as the user select some options.
And I have the equivalent of a shopping cart which keeps all my orders inside of Redux's store
In this case, would it be ok to use React's internal component state to keep track of the current order and just push it to the Redux "shopping cart" when the user finishes or I should keep it all inside Redux store (current order and all orders)?
I usually see people using internal state only in minor UI things when using redux.
What you mean saying "all my orders"?
Обсуждают сегодня