Skip to content

Commit

Permalink
fix(productView): key causes refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Jan 30, 2024
1 parent 7c8f100 commit 0d4c5f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/productView/productView.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ProductView = ({ t, useRouteDetail: useAliasRouteDetail }) => {
}

return (
<ProductViewContext.Provider value={config} key={`product_${productId}`}>
<ProductViewContext.Provider value={config} key={`product_${productGroup}`}>
<PageMessages>
<BannerMessages />
</PageMessages>
Expand Down Expand Up @@ -83,7 +83,7 @@ const ProductView = ({ t, useRouteDetail: useAliasRouteDetail }) => {
};

return updated(firstMatch);
}, [firstMatch, t]);
}, [firstMatch, productGroup, t]);

return (
(productGroup && (
Expand Down

0 comments on commit 0d4c5f3

Please sign in to comment.