Skip to content

Product Removed on Mobile Still Appears in Web's Mini Compare Section Until Re-login #39905

@lintots

Description

@lintots

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:

  1. Login on mobile and web with the same user account.
  2. 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
}
}
}
}
}

  1. 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
}
}
}
}
}

  1. 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

Labels

Area: AccountComponent: CompareListGraphQlIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.7-p3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Ready for Development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions