Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: lazy load variations #1644

Merged
merged 3 commits into from
May 22, 2024
Merged

refactor: lazy load variations #1644

merged 3 commits into from
May 22, 2024

Conversation

dhhyi
Copy link
Collaborator

@dhhyi dhhyi commented Apr 29, 2024

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

@dhhyi dhhyi added enhancement Enhancement to an existing feature refactoring Refactoring of current code performance Performance improvements labels Apr 29, 2024
@dhhyi dhhyi self-assigned this Apr 29, 2024
dhhyi added a commit that referenced this pull request Apr 29, 2024
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.
dhhyi added a commit that referenced this pull request Apr 29, 2024
BREAKING CHANGE: The productMaster property on the product view model has been removed. The master product should be individually retrieved.
dhhyi added a commit that referenced this pull request Apr 29, 2024
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.
dhhyi added a commit that referenced this pull request Apr 29, 2024
BREAKING CHANGE: The productMaster property on the product view model has been removed. The master product should be individually retrieved.
@dhhyi dhhyi removed their assignment May 2, 2024
@dhhyi dhhyi marked this pull request as ready for review May 2, 2024 08:01
@shauke shauke added this to the 5.2 milestone May 10, 2024
dhhyi added 2 commits May 22, 2024 14:06
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.
shauke pushed a commit that referenced this pull request May 22, 2024
BREAKING CHANGE: The productMaster property on the product view model has been removed. The master product should be individually retrieved.
BREAKING CHANGE: The productMaster property on the product view model has been removed. The master product should be individually retrieved.
@shauke shauke merged commit 362f288 into develop May 22, 2024
13 checks passed
@shauke shauke deleted the refactor/lazy-variations branch May 22, 2024 12:17
shauke pushed a commit that referenced this pull request May 22, 2024
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.
shauke pushed a commit that referenced this pull request May 22, 2024
BREAKING CHANGE: The productMaster property on the product view model has been removed. The master product should be individually retrieved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature performance Performance improvements refactoring Refactoring of current code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants