SalesforceCommerceCloud / pwa-kit

React-based JavaScript frontend framework to create a progressive web app (PWA) storefront for Salesforce B2C Commerce.
https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/pwa-kit-overview.html
BSD 3-Clause "New" or "Revised" License
285 stars 135 forks source link

[BUG] Unexpected error on the PLP page after clicking multiple times on Wishlist icon #1490

Open somyagithubaccount opened 1 year ago

somyagithubaccount commented 1 year ago

Summary On the click of the heart icon to add the respective product to the wishlist on the PLP page, the "Something went wrong" error message starts appearing in between the other toast messages.

Steps To Reproduce

  1. Navigate to the PLP page - https://pwa-kit.mobify-storefront.com/global/en-GB/category/womens
  2. Click on the wishlist icon for any product more than once without waiting for the toast message to disappear.

Expected result The unexpected error message should not be visible in between the successful toast messages(added to wishlist & removed from wishlist)

Actual result An unexpected error message appears in between the successful toast messages.

System Information (as applicable)

Browser: Chrome Node version: 18.16.0 pwa-kit version: 3.0.0 Desktop OS: Windows Screenshot (385)

vcua-mobify commented 1 year ago

Thanks for reporting this @somyagithubaccount. I am able to reproduce this as well and will investigate.

git2gus[bot] commented 1 year ago

This issue has been linked to a new work item: W-14508770

vcua-mobify commented 12 months ago

The above PR mitigates the frequency of this issue happening but the issue is still eventually reproducible if one rapidly clicks the heart icon. Going to leave this issue open for now until we are able to follow up