-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix/1601 incorrect productinfo #1610
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Kacper this is far better approach - probably to be used for the related products as well (?) Can You just check the review note I’ve put on logic duplication in the *.vue theme component?
}) | ||
if (option) { | ||
results.push(option.label) | ||
computed: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn’t this logic be just in the core? I’m not sure but I think it’s duplicated in the *.vue component is kind of DRY principle violation.
Shouldn’t it be just left in the core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are absolutelty right, It was originally duplicated - to make sure I'll compare both files and remove duplicated logic if there are no differences.
@pkarw Done, I'll check other places where we can use computed properties instead of firing events for proper reactivity working and create another PR if necessary. |
Thanks! |
Related issues
#1601
Short description and why it's useful
Introduced computed properies instead of non-reactive data() properies. Fixed issue with custom product attributes have not been updated correctly when navigating from one product page directly to another product page.
@pkarw Solution propsed by you doesn't work so I decided to use different approach