pwa-studio icon indicating copy to clipboard operation
pwa-studio copied to clipboard

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

Open huykon opened this issue 1 year ago • 3 comments

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:

  • Device [e.g. iPhone6, PC, Mac, Pixel3]:
  • Browser [e.g. Chrome, Safari]:
  • Browser Version [e.g. 22]:
  • Magento Version [e.g Adobe Commerce 2.4]:

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

  • [ ] venia-concept
  • [ ] venia-ui
  • [ ] pwa-buildpack
  • [ ] peregrine
  • [ ] pwa-devdocs
  • [ ] upward-js
  • [ ] upward-spec
  • [ ] create-pwa

huykon avatar Jul 02 '24 07:07 huykon

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.

m2-assistant[bot] avatar Jul 02 '24 07:07 m2-assistant[bot]

@adobe export issue to JIRA project PWA as Bug

glo82145 avatar Sep 23 '24 08:09 glo82145

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

github-jira-sync-bot avatar Sep 23 '24 08:09 github-jira-sync-bot