Description
Preconditions and environment
When a product is removed from the compare list via the mobile app using GraphQL, it is successfully removed from the mobile UI and from the main compare page on the web. However, the product still shows in the mini compare section (e.g., under My Account) on the web until the user logs out and logs back in.
Magento Version:
2.4.7-p3
Steps to reproduce
Steps to reproduce the behavior:
- Login on mobile and web with the same user account.
- Add products to the compare list using the following GraphQL mutation:
mutation {
addProductsToCompareList(
input: {
uid: "sssXyGZkTFksdPnxNoK1ut6OiV4bbchD",
products: ["3", "4"]
}
) {
uid
item_count
attributes {
code
label
}
items {
uid
product {
sku
name
description {
html
}
}
}
}
}
- Remove products from the compare list using:
mutation {
removeProductsFromCompareList(
input: {
uid: "sssXyGZkTFksdPnxNoK1ut6OiV4bbchD",
products: ["3"]
}
) {
uid
item_count
attributes {
code
label
}
items {
uid
product {
sku
name
description {
html
}
}
}
}
}
- Check the mini compare section on the web without logging out.
Expected result
The removed product should immediately disappear from all compare views on both mobile and web, including the mini compare section.
Actual result
The product is:
- Removed on mobile ✅
- Not visible on the main compare page on web ✅
- Still visible in the mini compare section on web ❌
Additional information
This suggests a caching or session state issue where the mini compare block on the web is not updating in real time with the backend or shared data source. Logging out forces a refresh and clears the stale entry.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status