Skip to content

Commit

Permalink
fix: do not shortly display the product image twice on PDP
Browse files Browse the repository at this point in the history
* disable hydration for the product images carousel
* because hydration causes an issue in combination with the swiper (image slider)
  • Loading branch information
SGrueber committed Oct 11, 2024
1 parent 1fc2014 commit 0e56e82
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ SwiperCore.use([Navigation]);
selector: 'ish-product-images',
templateUrl: './product-images.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
host: { ngSkipHydration: 'true' },
})
export class ProductImagesComponent implements OnInit {
@ViewChild('carousel') carousel: SwiperComponent;
Expand Down

0 comments on commit 0e56e82

Please sign in to comment.