Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fsproductindex): Fix infinite loop of requesting reviews
Since the requestReviews method now alters the component's state rather than triggering an update that results in new props being passed in, the props/state commerceData in getDerivedStateFromProps were never equal. This caused the subsequent componentDidUpdate call to always request a new set of reviews.
- Loading branch information