intershop / intershop-pwa

The Intershop PWA is an Angular based progressive web app storefront for the Intershop Commerce Platform.
https://www.intershop.com/progressive-web-app
MIT License
159 stars 85 forks source link

refactor: lazy load variations #1644

Closed dhhyi closed 6 months ago

dhhyi commented 7 months ago

PR Type

[X] Refactoring (no functional changes, no API changes)

What Is the Current Behavior?

Product variations are eagerly loaded via effects. In projects with a lot of Variations, this can lead to performance issues, especially if the variations data is not needed for the current views.

What Is the New Behavior?

Product variations are loaded lazily.

Does this PR Introduce a Breaking Change?

[X] Yes [ ] No

Other Information

BREAKING CHANGE: The variations property on the product view interface was removed. Variations can now be retrieved via the product context facade or the shopping facade.

AB#96195