magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 683 forks source link

[bug]: PDP add to cart action will refetch the query getProductDetailForProductPage #4288

Open huykon opened 3 months ago

huykon commented 3 months ago

Describe the bug as the title, when we click add to cart on PDP, after added the PDP will re-render, don't know why

To reproduce

Steps to reproduce the behavior:

  1. Go to 'PDP'
  2. Open the network tab of your browser
  3. Click on 'Add to cart'
  4. See the query getProductDetailForProductPage re-call

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

image

video screenshot Screencast from 02-07-2024 14:39:06.webm

Possible solutions

Add any ideas about possible solutions to the problem here.

Debug Report

Paste the output of yarn build:report, and any other context about the problem, here.

Please complete the following device information:

Please let us know what packages this bug is in regards to:

m2-assistant[bot] commented 3 months ago

Hi @huykon. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

glo82145 commented 1 week ago

@adobe export issue to JIRA project PWA as Bug

github-jira-sync-bot commented 1 week ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3365 is successfully created for this GitHub issue.