Open erturkemre opened 9 months ago
[ ] Install and initialize Redux with ReduxThunk, Logger middleware
[ ] Create Reducers with only basic set actions, reducers should have exact same structure below:
[ ] ShoppingCart reducer
cart: {Object Array} will keep products are being bought
[ { count: 1, product: { id: “1235”, … } }, { count: 3, product: { id: “1236”, … } }, ]
payment {Object} will keep payment information
address {Object} will keep address information
[ ] Code action creators for those reducers and each field above
[ ] Create thunk action creator to get “roles” and put it in store. NOTE: It should be triggered only in case of need!
[ ] Install and initialize Redux with ReduxThunk, Logger middleware
[ ] Create Reducers with only basic set actions, reducers should have exact same structure below:
[ ] ShoppingCart reducer
cart: {Object Array} will keep products are being bought
payment {Object} will keep payment information
address {Object} will keep address information
[ ] Code action creators for those reducers and each field above
[ ] Create thunk action creator to get “roles” and put it in store. NOTE: It should be triggered only in case of need!