What does this implement/fix? Explain your changes.
This PR adds Related Products in Product Detail Screen.
Does this close any currently open issues?
129
Any other comments?
NOTE 1: Functionality is not tested for Guest Cart
NOTE 2: Functionality is not tested on iOS device
NOTE 3: The way relatedProducts logic is currently setup in ProductReducer creates one problem. Suppose you open first Product, and from its related product you open second product, the new Product screen will come, and now it's related product will get load, but when you hit back, coming back to first product screen, the related products are shown of the second product, not its original related products.
Solution: Move realtedProducts logic into current in productReducer
thanks @alexakasanjeev, I've done refactoring of Product screen and rebuild related products logic with hooks on top of your changes. It's quite interesting I suggest you take a look.
What does this implement/fix? Explain your changes. This PR adds Related Products in Product Detail Screen.
Does this close any currently open issues?
129
Any other comments?
relatedProducts
logic is currently setup inProductReducer
creates one problem. Suppose you open first Product, and from its related product you open second product, the new Product screen will come, and now it's related product will get load, but when you hit back, coming back to first product screen, the related products are shown of the second product, not its original related products. Solution: MoverealtedProducts
logic intocurrent
inproductReducer
Where has this been tested?